Activitymanager: Java. Lang. securityexception

Source: Internet
Author: User

DebuggingProgramActivitymanager: Java. lang. securityexception: Permission Denial: Starting intent {act = android. intent. action. main cat = [android. intent. category. launcher] flg = 0x10000000 CMP = com. XXXXX. XXXXX /. UI. xxxxxxx} from null (pid =-1, uid =-1) The problem of requires null has plagued me for several days. At first, I thought that the permission was a problem, it has not been solved for a long time.

Later I saw:

The Java. Lang. securityexception you are seeing is because you may enter two entries pointing to same activity. Remove the second one and you shoshould be good to go.

Only then can this activity be found to have written two copies in the manifest file. After removing one copy, the activity can finally run normally.

Note: This problem may also occur. When you click the program icon on the mobile phone end, the system will prompt that the program is not installed on the mobile phone.

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: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.