Java tutorial
//package com.java2s; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.text.TextUtils; public class Main { public static void callPhone(Context context, String number) { Intent intent2 = new Intent(Intent.ACTION_DIAL); if (TextUtils.isEmpty(number)) return; Uri data2 = Uri.parse("tel:" + number); intent2.setData(data2); context.startActivity(intent2); } }