Here you can find the source of createCallIntent(String phoneNumber)
public static Intent createCallIntent(String phoneNumber)
//package com.java2s; import android.content.Intent; import android.net.Uri; public class Main { public static Intent createCallIntent(String phoneNumber) { Intent call = new Intent(Intent.ACTION_CALL); call.setData(Uri.parse("tel:" + phoneNumber)); call.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); //Remover isso return call; }/*www .j a v a 2s.c om*/ }