open Dial Intent - Android Intent

Android examples for Intent:Phone Call

Description

open Dial Intent

Demo Code


//package com.java2s;

import android.content.Context;
import android.content.Intent;

public class Main {
    public static void openDail(Context context) {
        Intent intent = new Intent(Intent.ACTION_DIAL);
        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        context.startActivity(intent);//from ww  w.jav  a  2  s  .  com
    }
}

Related Tutorials