When using a pendingIntent to start an activity and the activity is already active in the background, I can't get the new intent's extras. getIntent returns the intent that started the activity but in this case, Android will just bring it back to front and call onResume. I want to be able to get new Extras in order to update the activity.
How can I do it?
try
@Override
protected void onNewIntent(Intent intent) {
// TODO Auto-generated method stub
super.onNewIntent(intent);
}
EDIT: Works when setting the activity launchmode to singleTask
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With