You need to add an Intent filter to your manifest file in the action that you want to handle at boot time. For example: I have an Activity that handles the import of images, this is what I wrote.
activity android:name="com.ImportTheme"> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:host="*" android:scheme="file" android:mimeType="image/*" /> </intent-filter> </activity>
As you can see, you need to add a mime type suitable for what you are looking for. In my example, I want only pictures - png, jpg, etc.
Go to the following link, you have a list of mime types.
source share