how to reuse existing activity?

by AndroidGuy » Sat, 22 Aug 2009 02:14:39 GMT


Sponsored Links
 If my current activity stack is A->B->C, I want it to be like A->B->C-

I tried several approaches, but couldn't get what I want.

1. Before calling startActivity, set intent flag as
Intent.FLAG_ACTIVITY_REORDER_TO_FRONT, which makes the stack like B->C-

2. Trying activity A's launch mode as  "singleTask" or
"singleInstance", still couldn't get expected stack.

It looks like the activity stack per task cannot have duplicate one.

Any solutions will be appreciated.

Thanks

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



Other Threads

1. Install to sd and alarms

I am thinking of adding install to sd support to my app but it seems
sd and the alarms manager do not mix well.
So far I have tried receiving ACTION_MEDIA_MOUNTED intents so I can
reregister my alarms but the intent is never fired. Is there any easy
hook I can use to register alarms when my app becomes available after
the sd card is remounted?

My app isn't very large but I think users will appreciate any internal
memory I free up since Android phones don't seem to have very much of
it.

-- 

2. hosting app file on own site

i've got an app (.apk) file that i want to host on
my site.

whenever i click on page link to the .apk file,
i get the binary code listed as ascii.

- the app does not download.

i added

AddType application/apk .apk

to the .htaccess file - tomcat server

help.

-- 

3. IRC ngebawel yuk...

4. Bluetooth Serial Port Programming.

5. Imageadapter problems

6. Android developers in Central Florida?

7. Android market and customers email...