Recovering Activity Stack?

by Gerry Rodman » Sat, 27 Mar 2010 04:55:17 GMT


Sponsored Links
 Use Case:

User performs menu action to spawn Child Acitivity (CA) from Main
Activity (MA).  CA is translucent allowing MA to be viewed as shaded
background.  (CA is spawned using startActivity.  Also I have tried
using startActivityForResult but it still does not give the desired
result.)

User presses Home Key and switches to another app.  Via the home key,
he switches back to App in question.

Actual and undesired result:

User views CA (OK).  It is translucent and in background, user can see
the the activity of the unrelated application (Not OK) he first
switched to via Home Key.  If user presses back button, he returns to
the unrelated application (Not OK).

Desired Result:

User views CA.   It is translucent and in background, user can see
MA.  If user presses back button, he returns to MA.

Can anyone tell me how to get to desired result?

Thank you,

gr

--



Other Threads

1. Two developer G1s on one machine

The USB connector to the G1 seems to be G1-specific.  Plug in one G1
and the download goes fine.  Plug in another and you get "USB device
not recognized".

Anybody know why or more importantly how to support more than one G1
in a developer mode on one machine?

Thanks for any insight.

Cheers, Scott
--~--~---------~--~----~------------~-------~--~----~

2. My application doesn't appear in the application's list. (on the G1)

My application doesn't appear on the applications list on my G1 after
it's installed.

There are no errors in Eclipse and when I install it from Eclipse, the
app will run on the G1 immediately.  If I go into Settings >
Applications > Manage Applications my app is listed there, just not on
the main applications screen.

The thing that started this was that I tried to change my application
name. I changed the app in Eclipse and removed the home screen icon
and the app from my G1. Changing the name back to what it was
originally doesn't seem to help.

Other apps I have in Eclipse can install correctly.

Powered down the G1, no help.
I did a factory reset on my G1, this does not fix the problem.
I have deleted my .apk and cleaned the project. Doesn't help.

Does anyone have any ideas?


Below is a logcat from an attempted install of my program.

D/PackageParser(   47): Scanning package: /data/app/vmdl31379.tmp
D/dalvikvm(   47): GC freed 13549 objects / 702264 bytes in 189ms
D/PackageManager(   47): Scanning package com.myapp
I/PackageManager(   47): /data/app/vmdl31379.tmp changed; unpacking
D/installd(   34): DexInv: --- BEGIN '/data/app/vmdl31379.tmp' ---
D/dalvikvm(  776): DexOpt: load 25ms, verify 113ms, opt 1ms
D/installd(   34): DexInv: --- END '/data/app/vmdl31379.tmp' (success)
---
D/PackageManager(   47):   Activities: com.myapp.MyApp
com.myapp.OverlayList
I/installd(   34): move /data/dalvik-cache/
[EMAIL PROTECTED]@[EMAIL PROTECTED] ->
 /data/dalvik-cache/[EMAIL PROTECTED]@[EMAIL PROTECTED]
D/PackageManager(   47): New package installed in /data/app/
com.myapp.ap
k
D/AndroidRuntime(  770): Shutting down VM
D/dalvikvm(  770): DestroyJavaVM waiting for non-daemon threads to
exit
I/dalvikvm(  770): DestroyJavaVM shutting VM down
E/AndroidRuntime(  770): ERROR: thread attach failed
D/dalvikvm(  770): HeapWorker thread shutting down
D/dalvikvm(  770): HeapWorker thread has shut down
D/jdwp    (  770): JDWP shutting down net...
D/jdwp    (  770): +++ peer disconnected
I/dalvikvm(  770): De{*filter*} has detached; object registry had 1
entries
D/dalvikvm(  770): VM cleaning up
E/dalvikvm(  770): pthread_setspecific failed, err=22
D/dalvikvm(  770): LinearAlloc 0x0 used 529540 of 4194304 (12%)
D/dalvikvm(   47): GC freed 8431 objects / 416056 bytes in 339ms
D/AndroidRuntime(  781):
D/AndroidRuntime(  781): >>>>>>>>>>>>>> AndroidRuntime START
<<<<<<<<<<<<<<
D/AndroidRuntime(  781): CheckJNI is OFF
D/AndroidRuntime(  781): --- registering native functions ---
I/jdwp    (  781): received file descriptor 16 from ADB
I/ActivityManager(   47): Stopping service:
com.android.vending/.PackageMonitorR
eceiver$UpdateCheckinDatabaseService
I/ActivityManager(   47): Starting activity: Intent { flags=0x10000000
comp={com
.myapp/com.myapp.MyApp} }
D/AndroidRuntime(  781): Shutting down VM
D/dalvikvm(  781): DestroyJavaVM waiting for non-daemon threads to
exit
I/dalvikvm(  781): DestroyJavaVM shutting VM down
D/dalvikvm(  781): HeapWorker thread shutting down
D/dalvikvm(  781): HeapWorker thread has shut down
D/jdwp    (  781): JDWP shutting down net...
D/jdwp    (  781): Got wake-up signal, bailing out of select
I/dalvikvm(  781): De{*filter*} has detached; object registry had 1
entries
D/dalvikvm(  781): VM cleaning up
E/AndroidRuntime(  781): ERROR: thread attach failed
I/ActivityManager(   47): Start proc com.myapp for activity com.myapp
/.MyApp: pid=790 uid=10026 gids={}
D/dalvikvm(  781): LinearAlloc 0x0 used 541332 of 4194304 (12%)
I/jdwp    (  790): received file descriptor 10 from ADB
I/ActivityManager(   47): Displayed activity com.myapp/.MyApp: 4
83 ms

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

3. Answer/Recject onscreen buttons disappeared

4. Question about Contacts

5. Globabl Orientation Change

6. Problems with ListActivity

7. there is no ViewInflate in sdk 1.0?