[android-developers] Saving pointers to object

2011-06-28 Thread Gustavo Vargas
Ok, I know pointers don't exist in Java, but I was wondering if there is a way to mimic its behavior or any other mechanism that let me keep the reference to an object when my activity restart from a softkill. inside the onCreate of my activity I have something like that: work= new

Re: [android-developers] Saving pointers to object

2011-06-28 Thread TreKing
On Tue, Jun 28, 2011 at 3:41 PM, Gustavo Vargas xgvar...@gmail.com wrote: There is a way to do that? http://developer.android.com/reference/android/app/Activity.html#onRetainNonConfigurationInstance()

Re: [android-developers] Saving pointers to object

2011-06-28 Thread Justin Anderson
Why not wrap this original work thread in a service? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 28, 2011 at 2:41 PM, Gustavo Vargas xgvar...@gmail.com wrote: Ok, I know pointers don't exist in Java, but I was wondering if there is a way

Re: [android-developers] Saving pointers to object

2011-06-28 Thread Kostya Vasilyev
Orientation changes: http://developer.android.com/resources/articles/faster-screen-orientation-change.html Also consider using onPause / onStop to handle the user leaving the activity, and consider using a service so it can run independently of the activity. -- Kostya 2011/6/29 Gustavo Vargas