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. eclipse problem in AndroidManifest.xml file

Hi All,
I was using Netbeans to write my Android applications for a few weeks
now (i was used to NB). Then I decided to give a chance to Eclipse,
since its the official recommended (with tools existing) development
environment. Now, that I moved my code to Eclipse, it keeps
complaining in the manifest file. The error is shows is as following:

        <receiver android:name=".MyPhoneListener">
            <intent-filter>
                <action
android:name="android.telephony.TelephonyManager.ACTION_PHONE_STATE_CHANGED"/
            </intent-filter>
        </receiver>

org.xx.xx.MyPhoneListener does not extend
android.content.BroadcastReceiver

And actually it is true that it does not extend BroadcastReceiver, but
extends PhoneStateListener.

class MyPhoneListener extends PhoneStateListener


My question is, I was able to compile and run my exact same
application from Netbeans and the application was running fine.

So what might be the problem, is it an Eclipse bug or is this really a
wrong implementation (even it works!)?

-- 

2. cannot scrollTo() a webview before rending it

Hi, I have a map and some icons drawn on a webview that I redraw on
each GPS update. Even though only the icon that is representing my GPS
position should be redrawn, it still works without flickering. Now the
problem is that when the page has been scrolled, and I try to restore
its position after a refresh, it does flicker. Here is how I restore
the position:
        @Override public void onPageFinished (WebView view, String url) {
                if (scrollPercent != 0 || hScrollPercent != 0)
                        _view.scrollTo(hScrollPercent, scrollPercent);
                super.onPageFinished(view, url);
        }

Is there a function to call scrollTo() without a flicker. Or to do a
partial refresh?

-- 

3. plz help me ... how to implement camera intent correctly?

4. Menu Items.

5. "Low Memory: No more background processes."

6. Om sy udh install gde 0.1.6,cara jalanin ato aktifin nya gmn?

7. Om sy udh install gde 0.1.6,cara jalanin ato aktifin nya gmn?