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. I can't left/right scroll on listview inside a galleryview

I am trying to make a activity that has galleryview and listview.

listview is in galleryview and members of listview is only image

Problem is that if i'm scrolling up/down on list, scrolling is do very

But if i'm scrolling left/right on list to see other gallery's views,
that's problem, i can't scrolling left/right.

How should i do? help me guru's


2. ddms won't load anymore


I'm using an HTC Desire. After having configured my udev rules

# cat 51-android.rules
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0c87",
according to
# lsusb | grep High
Bus 008 Device 005: ID 0bb4:0c87 High Tech Computer Corp.

my ddms won't load anymore. Before this, it loaded, but without any
possible action on the device (`adb devices' was also showing
`insufficient permissions for device', and ``???''). Now, my device is
correctly recognized:

$ adb devices
List of devices attached
HT049PL07613    device

but ddms does not load. Why?



3. issue with android browser

4. SimpleCursorAdapter and database update

5. bluetooth voice command will not work with smart?phones/Droids!!

6. No response with DefaultHttpClient.execute()

7. AudioTrack MODE_STATIC issue