Get the Intent that resumes the activity

android

Solution

The solution is to override Activity.onNewIntent which is called before onResume.

Problem

Activity.getIntent returns the Intent that created the Activity. Is there any way to get the Intent that resumes the Activity in the case where the Activity goes from onPause to onResume?

Original source