I have a requirement in my app that I need to call the Police directly without any user interaction in an emergency situation. According to the Android documentation,
Applications can dial emergency numbers using ACTION_DIAL
So I have used the ACTION_DIAL intent as below:
Intent intent = new Intent(Intent.ACTION_DIAL);
intent.setData(Uri.parse("tel:+91100"));
startActivity(intent);
But instead of calling +91100 directly, in some devices the dialer screen is shown with the number prepopulated and we need to click on the Call icon to make the call and in some other devices it asks me to choose from which app I would like to make the call. I would like the call to be made directly from the default Phone Dialer without any user interaction since this call will be made when the user is an emergency situation.
Could you please let me know if there is any way in which this can be achieved?
Thank you.