Starting Intent from ProcessRecord with revoked permission android. permission. CALL_PHONE error, androidintent
Yesterday I wrote a telephone dial. It was very simple to use Edittext and a button to enter the number and click the button to make the call. But after writing it, I reported a security error. I checked it online, it turns out that authorization is missing, so I am in AndroidManifest. an authorization code line is added to the xml file.
<Uses-permission android: name = "android. permission. CALL_PHONE"/> (you must add it to the Application)
However, when an error is reported after running, the title error is reported. I haven't adjusted the title for a long time. Finally, I read an article saying that the user needs to grant permissions, the following figure shows how to set the simulator:
1. Open the setting function of the android simulator.
2. Click Apps.
3. Find the APP to run
4. Click permissions.
5. Open the required permissions.