Android phone pulling Summary

Source: Internet
Author: User

Today I want to write a simple phone call.ProgramWhen I wrote it out, I always reported an error. I tracked it and found the error. I didn't have the permission. I used to say it when I was reading the book, but I still forgot it when I was writing it, I will write more in the future. It is easy to say in the book, but it will be quite troublesome to use! The following is a summary of the errors that have been written today!

When using Android development programs, you often need to call system services. For example, to call a phone number, you need:

<Uses-Permission Android: Name = "android. permission. call_phone "/> is equal to adding an access permission for the dial-up call. If you do not add this permission, you cannot use the dial-up service. If a catch error occurs, the following error occurs:

13:24:12-08. 041: INFO/info (487): Permission Denial: Starting intent {act = android. intent. action. call dat = Tel: 124 CMP = com. android. phone /. outgoingcallbroadcaster} from processrecord {43f01930 487: COM. callphonetest/10036} (pid = 487, uid = 10036) requires android. permission. call_phone is mainly used to deny the use of the call service. Of course, if you want to call an email or text message, you need to introduce the corresponding service, such as email: You need to add the following permissions:

Android. Permission. InternetIntentService. And so on. This needs to be summarized in the use process!

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.