Java tutorial
//package com.java2s; import android.app.Activity; import android.content.Intent; import android.net.Uri; public class Main { public static void tell(String s, Activity activity) { if (!"".equals(getEmply(s))) { Uri uri = Uri.parse("tel:" + s); Intent it = new Intent(Intent.ACTION_DIAL, uri); activity.startActivity(it); } } public static String getEmply(String s) { if (null == s) { s = ""; } return s; } }