Android Notification restarts app but want to resume?

You can try this FLAG_ACTIVITY_REORDER_TO_FRONT (the document describes exactly what you want to) developer.android.com/reference/android/... Intent notificationIntent = new Intent(this, Class); notificationIntent. SetFlags(Intent. FLAG_ACTIVITY_REORDER_TO_FRONT); PendingIntent contentIntent = PendingIntent.

GetActivity(this, 0, notificationIntent, 0).

Thanks for answering I put this in manifest, fixed the problem for me android:launchMode="singleInstance" also these answers allude to other things of interest.. stackoverflow. Com/questions/4047683/… and stackoverflow. Com/questions/4047683/… – ozmike Apr 10 at 12:44.

I put this in manifest android:launchMode="singleInstance" , fixed the problem for me. Also these answers which I have not tried which allude to other things of interest.. stackoverflow. Com/questions/4047683/… and stackoverflow.Com/questions/4047683.

If you have to avoid setting your activity to "singleInstance", then set the notification's intent as follows: notificationIntent. SetFlags(Intent. FLAG_ACTIVITY_SINGLE_TOP).

Clicks the notification the app restarts. However I just want it to reappear not restart. It is a web app and I want it to come to the front when the user selects the notification..but not refresh the web page.

Can I trap this intent or am I sending the wrong intent? Normally if I press the home button and click on the app icon the app comes to the fore and dosen't refresh/restart. So this is the behaviour I want.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions