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. Calling all Android App Developers

We need your help! And we want to help you!

Below is a link to our most recent blog post asking for your help. We
are looking for application developers/companies who are interested in
becoming some of the first members to our new site Stampede.It.

Our main goal is to help you drive more traffic and revenue to your
applications. We do this by by providing a platform for you to offer
daily deals to our targeted user base. If you want, you can think of
us as a GroupOn for digital goods and services.

http://{*filter*}le.stampede.it/post/3329005601/calling-all-app-developers

Feel free to send an email to team (at) stampede.it or hit us up on
Twitter @stampede.it


Cheers,
The Stampede.It Team


P.S. We are releasing a new splash page next week, so stay tuned.

-- 

2. Open another application with only the package name

app = activityManager.getRunningAppProcesses();
manager = this.getPackageManager();

for (final RunningAppProcessInfo name : app) {

info = manager.getPackageInfo(name.processName, 1);
appinfo = info.applicationInfo;

Intent intent = new Intent(Intent.ACTION_MAIN,null);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
final ComponentName cn1 = new
ComponentName(name.processName,---------------!!!!!------------:D--------);
intent.setComponent(cn1);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);


I have a problem with the second parameter of ComponentName because I
have only package name and not also the main activity name of an
application. Can you help me?

thanks ;)

-- 

3. startActivity() in monkeyrunnner doesn't work

4. bluetooth support on Emulator in Honeycomb???

5. How to get the permission to surface->creatoverlay()?

6. Android WebView Protocol Handler

7. Application Object and Intents