I am trying to use the intent-filter ACTION_PACKAGE_FIRST_LAUNCH to make the application do some tasks when it first launched, however it not being captured by the broadcast receiver my Manifest
<receiver android:name=".reminder.ReminderActionReceiver" >
<intent-filter>
<action android:name="android.intent.action.PACKAGE_FIRST_LAUNCH" />
<action android:name="android.intent.action.PACKAGE_DATA_CLEARED" />
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
this my broadcast receiver implementation
this.context = context;
String mAction = intent.getAction();
Log.i("r", mAction);
if (mAction == Intent.ACTION_PACKAGE_DATA_CLEARED) {
} else if (mAction == Intent.ACTION_PACKAGE_FIRST_LAUNCH) {
}
How can i make it start when the app first launched?