Using intents to communicate between two activities seems not straightforward. Regardless of where (probably in onResume()) I place the check for intent I end up in a situation where it is impossible to distinguish between the call where passing intent took place along the startActivity() and the call when the device was rotated (or put through onPause() and onResume() cycle in general) later because the intent is still available.
How do I deal with the problem above?
You can always do
setIntent(intent)to change the intent that you recieved. So you could add an extra or set a completely different intent.
The next time you do getintent you will get the intent that you have set