android:apk plugin appears permission denial:starting intent error

Source: Internet
Author: User

The main error of permission denial error when Android Jump plugin is: <action android:name= "Android.intent.action.MAIN"/> Not added in ingress activity.

<activity android:name= "Activity" > <intent-filter> <action android:name= "Android.intent.action.MA In "/> </intent-filter></activity>

an application can have more than one activity, and each activity is at the same level, which activity is started first when the program is started? Some programs may need to be displayed in the list of programs, some of which are not required. How do you define it? Android.intent.action.MAIN determines the activity that the application starts first, Android.intent.category.LAUNCHER determines whether the application appears in the program list. Main and launcher are also set to make sense,

If there are multiple peers, the activity has a filter

<intent-filter> <action android:name= "Android.intent.action.MAIN"/> <category android:name= "Android . Intent.category.LAUNCHER "/></intent-filter>

only the front-most activity <action android:name= "Android.intent.action.MAIN"/> Valid, the activity is executed when the program is started. And there are multiple icons in the list of programs, which are displayed in the program list, which has multiple portals, performs different activity, application But the main entrance to the entire program (the activity that the program runs first) has only the activity that was first defined.

If an app does not have launcher, the APK can still be installed on the device, but it is not visible in the main program diagram. If the activity is set to the launcher, and the main is set at the same time, the activity can appear in the program diagram, if there is no main, you do not know which activity to start, so there will be no icon appears.


android:apk plugin appears permission denial:starting intent error

Related Article

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.