Java – Android home screen shortcut permission error
•
Java
In my program, it adds shortcuts to the screen I get the icon on the screen, but when I click it, I get:
03-01 20:00:29.410: ERROR/AndroidRuntime(796): java.lang.SecurityException: Permission Denial: starting Intent { data=http://www.example.com/ flags=0x14000000 comp={com.isaacwaller.example/com.isaacwaller.example.ExampleCut} } from ProcessRecord{435c7398 796:android.process.acore/10005} (pid=796,uid=10005) requires null
Do you know the problem? Thank you, Isaac
Solution
This happens when I accidentally copy the activity tag of one of my activities in my list There are such things in my application section
<activity android:name=".ConventionHome" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name="ConventionHome"></activity>
When I delete the second activity tag, things start to work normally
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码