I can only get the package name and class name of the top activity object, 
using activityManager.getRunningTasks.

 

The reason I want to get the reference to the top activity object is:

My application FOOL will start a third-part activity, say Gallery intent 
activity. For example, the activity list is:

A -> B -> C -> D -> Gallery

 

And now during Gallery, I press HOME button.

 

I want to delete all activities, including Gallery, immediately pressing 
HOME button.

 

I can delete the activities who belong to my FOOL package, using an 
activity manager.

But I cannot delete Gallery, since I cannot get its object’s reference.

So when I start FOOL again, I see Gallery! This is not desired at all!

 

Help please? Hint? Link?

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to