Intent to bring up top-most activity in task?

by westmeadboy » Sat, 27 Mar 2010 07:30:55 GMT


Sponsored Links
 If my app is already running, then either Activity1 or Activity2 might
be currently on top.

How to construct an Intent so that it will simply show whichever
Activity is already on top (in the task)? Just like if you touch an
icon in the Recent list (long-press home).

At the moment, it looks like (for explicit Intents) you need to be
explicit about the Activity to launch. But I would rather be explicit
about the app (package name).

FWIW, I'm thinking of Intents triggered via Notifications.

--



Other Threads

1. Drag & Drop outside the parent ViewGroup

Hi I'm implementing some drag & drop functionality.

I'm currently having two problems:
1) When I drag the View outside of it's parent it's being clipped, I
like to be able to drag the item around the whole window.

2) Z-order, I'm currently bringing the dragged View to the front but
with the same approach when moving over view groups would mean that
the parent ViewGroup would have to be at the front potentially
resulting in distorting the layout of the application.

Question: Is there a way to hand over the drawing of a View to my root
View or even the activity so it can be ensured to be at the front and
move around the whole window? I would prefer not to have to remove the
child and add it into an other ViewGroup during the drag & drop
operation if possible.
--~--~---------~--~----~------------~-------~--~----~

2. -Conformation

Will Android support Adobe Flex ? if not let me know the other things
it will support ?

--~--~---------~--~----~------------~-------~--~----~

3. Nothing new in first Android phone Just another iPhone with different OS

4. How to compile android emulator on windows platform?

5. An issue about Typeface

6. LocationManager - getLastKnownLocation() - NullPointer Exception

7. Does HTC Dream Have GPS?