How do you separate an Android App Widget Activity stack from the Application Activity stack?

I haven't faced this exact situation, but Intent. FLAG_ACTIVITY_NO_HISTORY is what I needed to make my widget-launched Activity always go Back to the Home screen.

I've got an Android App Widget that when clicked uses a PendingIntent to start an Activity, which the main Application associated with the App Widget also uses. After the user is done with the Activity started from the App Widget, and presses the back button, the user is taken to the Activity on the top of the MAIN application Activity stack. I'd like the back button to take the user back to the Android desktop/home screen.

In short, I'd like separate Activity stacks for my App Widget and Application. Not sure why Android wants to combine these. This is what I've got now in the App Widget and it's not working.

FLAG_ACTIVITY_CLEAR_TOP or Intent. FLAG_ACTIVITY_NEW_TASK seems to have any impact on the stack. PendingIntent pendingIntent = PendingIntent.

MRequestCode++, intent, PendingIntent.

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