Hi All,
In my application i want to call emergency number that 911 in USA.
For that we are using below code.
Its is opening default dialler screen. other than 911 call is going
private void call() {
try {
Intent callIntent = new Intent(Intent.ACTION_CALL);
//Intent callIntent = new
Intent(LockScreenActivity.this,com.android.phone.EmergencyDialer.class);
callIntent.setData(Uri.parse("tel:"+"911"));
callIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(callIntent);
} catch (ActivityNotFoundException activityException) {
Log.e("helloandroid dialing example", "Call failed",
activityException);
}
}
I want to know is there any way to open default emergency dailler screen.
Thanks
Dharmendra
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en