List of usage examples for android.content Intent ACTION_DIAL
String ACTION_DIAL
To view the source code for android.content Intent ACTION_DIAL.
Click Source Link
From source file:Main.java
public static void dial(Context context, String phoneNum) { Intent dial = new Intent(Intent.ACTION_DIAL); dial.setData(Uri.parse("tel:" + phoneNum)); context.startActivity(dial);// www . j ava2 s . c om }
From source file:Main.java
public static void dial(Context context, String number) { Intent intent = new Intent(Intent.ACTION_DIAL); intent.setData(Uri.parse("tel:" + number)); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(intent);/*from ww w. j av a 2s . c o m*/ }
From source file:Main.java
public static void callPhone(Context context, String phoneNum) { Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse("tel:" + phoneNum)); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(intent);/*from w w w . jav a 2s.co m*/ }
From source file:Main.java
public static void startPhone(Context context, String phoneNumber) { Intent intent = new Intent(Intent.ACTION_DIAL); // intent.setAction(Intent.ACTION_CALL); intent.setData(Uri.parse("tel:" + phoneNumber)); context.startActivity(intent);// w w w.j av a 2 s . c om }
From source file:Main.java
public static void callDial(Context context, String phoneNumber) { context.startActivity(new Intent(Intent.ACTION_DIAL, Uri.parse("tel:" + phoneNumber))); }
From source file:Main.java
public static void dial(Context context, String phoneNumber) { context.startActivity(new Intent(Intent.ACTION_DIAL, Uri.parse("tel:" + phoneNumber))); }
From source file:Main.java
public static void dialIn(Context context, String number) { Intent intent = new Intent(); intent.setAction(Intent.ACTION_DIAL); intent.setData(Uri.parse("tel://" + number)); context.startActivity(intent);/*from w w w .j ava2s .co m*/ }
From source file:Main.java
public static void callPhone(Context context, String number) { Intent intent = new Intent(); intent.setAction(Intent.ACTION_DIAL); intent.setData(Uri.parse(String.format("tel:%s", number))); context.startActivity(intent);//from w ww . ja va 2s .com }
From source file:Main.java
public static boolean startDial(Context context, String number) { try {//from w w w . j a v a2s . c om context.startActivity(new Intent(Intent.ACTION_DIAL, Uri.parse("tel:" + number))); } catch (Exception e) { return false; } return true; }
From source file:Main.java
public static void callNumWithDial(Context context, String number) { Intent intent = new Intent(); intent.setAction(Intent.ACTION_DIAL); intent.setData(Uri.parse("tel:" + number)); context.startActivity(intent);/*from w ww.j ava 2 s . c o m*/ }