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.



Other Threads

1. Signed vs. Unsigned

Ok, stupid question time: what's the difference being "Export Signed
Application Package" and "Export Unsigned Application Package"? Under
'Signing for Public Release' in the dev guide it says you must:

1. Compile the application in release mode
2. Obtain a suitable private key
3. *Sign* the application with your private key

But then it continues:

"To prepare your application for release...To export an unsigned .apk
from Eclipse, right-click the project in the Package Explorer and
select Android Tools > Export Unsigned Application Package."

But below this under "Compiling and signing with Eclipse ADT" it says
to "To create a signed .apk, right-click the project in the Package
Explorer and select Android Tools > Export Signed Application
Package...When you complete the Export Wizard, you'll have a
signed .apk that's ready for distribution"

Huh? Do I need my app signed or unsigned for distribution on market

2. Changing default behavoir of the hardware MENU button

Hey Guys,

I would like to register a listener for a long press of the hardware
MENU button that I could show my Activity instead of the virtual
keyboard that pops up by default. Any ideas?

Thanks and best regards,


3. how to block the dropdown list in autocompletetextview?

4. resolve the questions about compiling the android kernel

5. SASL Library for Android

6. the log of ActivityManager when start a new activity

7. Spinner and cursor adapter