Nested activities question

by jb » Fri, 23 Apr 2010 00:48:09 GMT


Sponsored Links
 I have an application that allows the user to "drill-down" into data.
At each level of data the user can choose a Tableview item or a
Listview item. This will result in a startActivity() call for display
of new data.

I can get back to the top (Parent activity) by using the Back button,
which can take a while. Is there a way to "POP" back to the Parent
activity and dismiss all previously allocated activities, and not have
to go back through all the activities previously created?

TIA,

jb

--



Nested activities question

by ~ TreKing » Fri, 23 Apr 2010 01:48:27 GMT


 



See this thread:


Sponsored Links


Nested activities question

by krox » Fri, 23 Apr 2010 02:03:01 GMT


 Hi!

rootActivityIntent) with the flag FLAG_ACTIVITY_REORDER_TO_FRONT set
for rootActivityIntent. Hope this is what you were looking for, for
more information see:

 http://developer.android.com/reference/android/content/Intent.html #FLAG_ACTIVITY_REORDER_TO_FRONT

Cheers,
Erik



>



Other Threads

1. Weird: It appears as if sometimes my Activity will be resumed but previously set instance variables are null

Hey all-

I am using an Application object to store app-wide instance data--data
that I need to remain in existence for the entire lifetime of the app,
so the Application class seems like the proper place to put it. I have
just finished reading this thread

2. Exception in setDrawingCache in Android 1.5?

Hi,

I am developing an application where I am using setDrawingCache and
then once I get the Bitmap I destroy the cache by using
destroyDrawingCache().

The application has been developed with Android SDK 1.6. When testing
the application in emulator with Android 1.5 the application throws
NullPointerException when try to manipulate the Bitmap returned by
getDrawingCache(). It probably gives error since getDrawingCache
returns null.

The interesting thing in this is that the NullPointerException comes
only after I run the application twice or thrice. It means I am able
to get the Bitmap for two times and then it throws this exception.

The error that I am getting is as below

java.lang.NullPointerException
E/AndroidRuntime( 1036):        at
com.babbleville.HomeScreenActivity.resizeBitmap(HomeScreenActivity.java:
394)
E/AndroidRuntime( 1036):        at com.babbleville.HomeScreenActivity.access
$0(HomeScreenActivity.java:392)
E/AndroidRuntime( 1036):        at com.babbleville.HomeScreenActivity
$1.handleMessage(HomeScreenActivity.java:327)
E/AndroidRuntime( 1036):        at
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 1036):        at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 1036):        at
android.app.ActivityThread.main(ActivityThread.java:3948)
E/AndroidRuntime( 1036):        at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1036):        at
java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 1036):        at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:782)
E/AndroidRuntime( 1036):        at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
E/AndroidRuntime( 1036):        at dalvik.system.NativeStart.main(Native
Method)


Can someone please let me know the problem?


Regards
Sunil

-- 

3. How to Bind data to list?

4. Quick & Easy Question

5. Problem porting Android to iPhone

6. three sim card

7. Service communicates with other service