protected void onNewIntent (Intent intent) {.jd-details-title style=”padding-right:95px;padding-left:3px;font-size:1.15em;padding-bottom:3px;margin:1.5em 0px 0.6em;word-spacing:0px;text-transform:none;color:#333333;text-indent:0px;line-height:20px;padding-top:3px;font-style:normal;font-family:Roboto, sans-serif;white-space:normal;letter-spacing:normal;background-color:#e2e2e2;font-variant:normal;widows:2;orphans:2;webkit-text-size-adjust:auto;webkit-text-stroke-width:0px;”}
Added in [API level
1](http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)
This is called for activities that set launchMode to "singleTop" in
their package, or if a client used the `FLAG_ACTIVITY_SINGLE_TOP`{style="font:bold 14px/1.5 'courier new', courier, monospace;color:#006600;"} flag when calling `startActivity(Intent)`{style="font:bold 14px/1.5 'courier new', courier, monospace;color:#006600;"}.
In either case, when the activity is re-launched while at the top of the
activity stack instead of a new instance of the activity being started,
onNewIntent() will be called on the existing instance with the Intent
that was used to re-launch it.
An activity will alw chmod ays be paused before receiving a new intent,
so you can count
on `onResume()`{style="font-weight:bold;line-height:1.5;font-family:'courier new', courier, monospace;color:#006600;"} being
called after this method.
Note that `getIntent()`{style="font:bold 14px/1.5 'courier new', courier, monospace;color:#006600;"} still returns the original Intent.
You can use `setIntent(Intent)`{style="font:bold 14px/1.5 'courier new', courier, monospace;color:#006600;"} to update it to this new Intent.
**References:**
<http://developer.android.com/reference/android/app/Activity.html#onNewIntent(android.content.Intent)>