Android: Putting a custom permission on the main activity - bad practice?
问题 I have a simple application that runs a webview and I want it to be launchable by other applications sending a few parameters that I will include in the URL string. To accomplish this, I created a new intent-filter on the main activity to go with the main/launcher intent-filter like so: <intent-filter> <action android:name="com.mycompany.myapp.intents.START_APP" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> <intent-filter> <action android:name="android.intent