Android Phone Number Dial dialIn(Context context, String number)

Here you can find the source of dialIn(Context context, String number)

Description

dial In

Declaration

public static void dialIn(Context context, String number) 

Method Source Code

//package com.java2s;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;

public class Main {
    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);//  www  . jav a2  s.  c  o  m
    }
}