I am trying to create a PendingIntent in Android. Here is the code
mNotificationIntent = new Intent(getApplicationContent(), MyAlarm.class); mContentIntent = PendingIntent.getActivity(getApplicationContext(), 0, mNotificationIntent, Intent.FLAG_ACTIVITY_NEW_TASK);
and I get the following error:
Must be one or more of: PendingIntent.FLAG_ONE_shot,PendingIntent.FLAG_NO_CREATE, PendingIntent.FLAG_UPDATE_CURRENT, Intent.FILL_IN_ACTION, Intent.FILL_IN_DATA, Intent.FILL_IN_CATEGORIES…..)
Why is this error displayed? How to solve this? Please help. Thanks.
android android-intent notifications
Boomerang
source share