Or use the debugger, and set breakpoints in each method on the
affected class, and step through until you see where the field is
being cleared.

On Apr 20, 8:23 pm, Dianne Hackborn <hack...@android.com> wrote:
> Fwiw, there is definitely no clearing of instance variables when
> onNewIntent() is called.  I can't imagine how the framework would even clear
> instance variables, except for using reflection to find them and poke them,
> which we definitely don't do.
>
> For these situations it may be useful to look at the event log (adb logcat
> -b events) to see what the system is doing, and also possibly the activity
> manager state (adb shell dumpsys activity) to see the state the system has
> your activities in.
>
> On Tue, Apr 20, 2010 at 9:48 AM, Christopher <christopher...@gmail.com>wrote:
>
>
>
>
>
> > Just out of curiosity, is your Activity making use of onNewIntent()?
> > I was curious because I recently worked on an Activity that did, and
> > found that many variables in the Activity were set to null after this
> > method completed.  It's almost as if onNewIntent does a quick reset of
> > the instance, which given the nature of onNewIntent could make sense.
> > I might not be 100% accurate in terms of what's going on, but thought
> > perhaps the information could help.
>
> > (Note: I think I originally replied only to the author, so I attempted
> > to reconstruct the post as best I could.  I apologize if suddenly
> > there are two almost identical posts from me that show up).
>
> > Christopher
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com<android-developers%2Bunsubs 
> > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to