Then add the code at the
onCreate()
function. Just the way you have written the code in the event handler, write the code in the activity's event handler;
for creation.
public void onCreate(Bundle b) {
Intent intent = getIntent();
}
This way, you will get your intent captured. Basically, to capture the Intent object anywhere, just do the
getIntent()
function in instance contexts.