Java tutorial
//package com.java2s; import android.content.ActivityNotFoundException; import android.content.Context; import android.content.Intent; import android.net.Uri; public class Main { public static boolean callPhone(Context context, String phone) { try { Intent callIntent = new Intent(Intent.ACTION_CALL); callIntent.setData(Uri.parse("tel:" + phone)); context.startActivity(callIntent); return true; } catch (ActivityNotFoundException e) { return false; } } }