Java tutorial
//package com.java2s; import android.content.Context; import android.content.Intent; import android.net.Uri; public class Main { public static void call(String phoneNum, Context context) throws Exception {//TODO tobe test Intent intent = new Intent(); intent.setAction(Intent.ACTION_DIAL); intent.setData(Uri.parse("tel:" + phoneNum)); context.startActivity(intent); } }