Example usage for android.content Intent ACTION_CALL

List of usage examples for android.content Intent ACTION_CALL

Introduction

In this page you can find the example usage for android.content Intent ACTION_CALL.

Prototype

String ACTION_CALL

To view the source code for android.content Intent ACTION_CALL.

Click Source Link

Document

Activity Action: Perform a call to someone specified by the data.

Usage

From source file:Main.java

public static void call(Context ctx, String number) {
    Intent callIntent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + number));
    ctx.startActivity(callIntent);//  w w w . j  a v  a 2s. co  m
}

From source file:Main.java

public static void dial(String tel, Activity activity) {
    activity.startActivity(new Intent(Intent.ACTION_CALL, Uri.parse(tel)));
}

From source file:Main.java

public static void call(Context context, String number) {
    Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + number));
    context.startActivity(intent);//w ww .j  av a 2s .c  o m
}

From source file:Main.java

public static void doIt(Context context, String number) {
    Intent phoneIntent = new Intent(Intent.ACTION_CALL);
    phoneIntent.setData(Uri.parse("tel:" + number));
    context.startActivity(phoneIntent);/*from   w w  w. j  a va 2s. c  o m*/
}

From source file:Main.java

public static Intent call(String paramString) {
    Uri localUri = Uri.parse("tel:" + paramString);
    return new Intent(Intent.ACTION_CALL, localUri);
}

From source file:Main.java

public static void startCall(Context context, String uri) {
    Intent intent = new Intent(Intent.ACTION_CALL);
    intent.setData(Uri.parse(uri));//  www  . j  a  v a2 s.  c  om
    context.startActivity(intent);
}

From source file:Main.java

public static void callPhone(String number, Activity act) {
    Intent callIntent = new Intent(Intent.ACTION_CALL);
    callIntent.setData(Uri.parse("tel:" + number));
    act.startActivity(callIntent);/*from w ww  . java 2 s. co m*/
}

From source file:Main.java

public static void call(Context context, String phoneNumber) {
    context.startActivity(new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + phoneNumber)));
}

From source file:Main.java

public static void onCallPhone(Context context, String mobile) {
    Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + mobile));
    context.startActivity(intent);//  w w w . j  av a 2  s  .c o  m
}

From source file:Main.java

public static void callPhone(Context context, String phone) {
    Intent intent = new Intent(Intent.ACTION_CALL);
    Uri data = Uri.parse("tel:" + phone);
    intent.setData(data);//from   ww w.  j  av a 2s  .  co m
    context.startActivity(intent);
}