android - One activity two Intent filter -


when start activity first time getintent().getaction() shows action name "android.intent.action.main" in onresume() method, after moved activity activity, there set intent action "com.example.continue_service" & start previous activity. still getintent().getaction() shows action name "android.intent.action.main" in onresume() method. can't understand why getintent().getaction() not shows action name "com.example.continue_service" in onresume() method.

getintent() returns intent used create activity instance. symptoms explained if not creating new activity instance, instead reusing existing instance. might occur due intent flags (e.g., flag_activity_reorder_to_front) or manifest settings (e.g., android:launchmode values). in these cases, new intent delivered onnewintent() when activity brought foreground.


Comments