jump To System Call Activity - Android Activity

Android examples for Activity:Activity Jump

Description

jump To System Call Activity

Demo Code


//package com.java2s;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;

public class Main {
    public static void jumpToSystemCallActivity(Context context,
            String number) {//from   ww w  .  jav a 2s  .  co m
        Intent i = new Intent();
        i.setAction("android.intent.action.CALL");
        i.setData(Uri.parse("tel:" + number));
        i.addFlags(1234);
        context.startActivity(i);
    }
}

Related Tutorials