Java tutorial
//package com.java2s; //License from project: Apache License 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 phoneNumber) { if (!TextUtils.isEmpty(phoneNumber)) { try { Intent callIntent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + phoneNumber)); context.startActivity(callIntent); } catch (Exception e) { e.printStackTrace(); } } } }