How to activate calls to 911, for an emergency

Hello, I am creating an app, and I would need it to call 911 when pressing a button.

Use the phone component?

I was investigating and it seems that component does not work correctly… (phone component).

If I could do it with ActivityStarter…
only that it starts the call dialer with “911”, but I would like the call to be activated automatically as well.

can you elaborate?
also what about providing a screenshot of your relevant blocks?
you first might want to try it with a regular phone number…


You can use activity starter as “android.intent.action.DIAL”