Android Intent Create intentCall(Activity activity, String phoneNumber)

Here you can find the source of intentCall(Activity activity, String phoneNumber)

Description

intent Call

Declaration

public static void intentCall(Activity activity, String phoneNumber) 

Method Source Code

//package com.java2s;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;

public class Main {
    public static void intentCall(Activity activity, String phoneNumber) {
        Uri uri = Uri.parse("tel:" + phoneNumber);
        Intent it = new Intent(Intent.ACTION_CALL, uri);
        activity.startActivity(it);//  w  w  w .ja  v a  2s.  com
    }
}

Related

  1. locate(Context context, String chooserTilte, String lat, String lng, String addr)
  2. putParamters(Intent intent, Object[] parameters)
  3. to(Context context, Class cls)
  4. to(Context context, Class cls, Bundle data)
  5. putParamters(Intent intent, Object[] parameters)
  6. intentDIY(Activity activity, Class classes)
  7. intentDIY(Activity activity, Class classes, Map paramMap)
  8. intentDIY(Activity activity, Class classes, int enterAnim, int exitAnim)
  9. intentDIY(Activity activity, Class classes, Map paramMap, int enterAnim, int exitAnim)