¡@

Home 

2014/10/16 ¤W¤È 08:21:24

android Programming Glossary: pendingintentno

Determine addAction click for Android notifications

http://stackoverflow.com/questions/15350998/determine-addaction-click-for-android-notifications

new Bundle noBundle.putInt userAnswer 2 This is the value I want to pass noReceive.putExtras noBundle PendingIntent pendingIntentNo PendingIntent.getBroadcast this 12345 noReceive PendingIntent.FLAG_UPDATE_CURRENT mBuilder.addAction R.drawable.calendar_x.. this 12345 noReceive PendingIntent.FLAG_UPDATE_CURRENT mBuilder.addAction R.drawable.calendar_x No pendingIntentNo This is the code of the BroadcastReceiver public class AlarmReceiver extends BroadcastReceiver @Override public void onReceive.. then keep it but its replace its extra data with what is in this new Intent. When you specify pendingIntentMaybe and pendingIntentNo the system uses the PendingIntent created for pendingIntentYes but it overwrites the extras. Thus all three variables refer..