Cause analysis of android.content.ActivityNotFoundException occurrence

Source: Internet
Author: User

Android.content.ActivityNotFoundException:Unable to find explicit activity class {com.android.settings/ Com.android.settings.deviceinfo.SoftwareUpdates}; Declared this activity in your androidmanifest.xml?



Currently in the development of Android 5.0 L. Want to add a few sub-menus in the settings, found through the XML file to make the class, you can jump smoothly, but when in the Java code to intent jump, I will appear above such an exception.


Of course, check androidmanifest is configured to the class, and finally found that the reason is: need to androidmanifest add the following line of code to solve the problem.



Android:taskaffinity= "Com.adnroid.settings"






Another 5.0 setting need to delete the cache after each push

The path to the Settings is system/priv-app/settings


Another 5.0 setting need to delete the cache after each push

The path to the Settings is system/priv-app/settings

Cause analysis of android.content.ActivityNotFoundException occurrence

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.