Is there any way to add emergency contact number on dashboard in android programmatically?

StackOverflow https://stackoverflow.com/questions/20351970

Вопрос

I want to implement a feature in an application.User can add any emergency number list on dashboard.The purpose of that feature is so that if there is an emergency you can dial an emergency number (911) without having to unlock the phone.

Нет правильного решения

Другие советы

private void phoneCall()
{
 String phoneCallUri = "tel:92";
 Intent phoneCallIntent = new Intent(Intent.ACTION_CALL);
 phoneCallIntent.setData(Uri.parse(phoneCallUri));
 startActivity(phoneCallIntent);
}
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top