views:

15

answers:

1

Is there any event triggered on an activity when I call

startActivity("activity_id", myIntent);

If the Activity exists already.

I pass a parameter to the activity via

i.putExtra("someID", someSerializableObject );  

and would like to call a method to refresh a WebView.

Right now, the call on startActivity brings the activity in the foreground but the webview does not display what i want.

A: 

Depending on the flags in your Intent and the settings in your manifest, your activity will be called with either onCreate() or onNewIntent().

CommonsWare
onNewIntent() did the trick. cheers !
yann.debonnel