I am not sure what you mean Dianne - and that's probably because I am still not sure the way I think of this is the right way.
I am running a servlet on the phone that starts an Intent on an Activity class. The class starts the camera preview and takes a picture. Then I have a subsequent Intent start on the same Activity class to stop the preview. The second Intent will fall into the OnNewIntent. It also carries a set of extra parameters that I want to read and use iwthin the OnNewIntent. How do I access those Extra params? I have used Extra bundles before and I know how they work. So what do you mean I need to remember the Intent? Thanks for the response On Aug 9, 2:17 am, Dianne Hackborn <hack...@android.com> wrote: > No. That is telling you about the new Intent. If you want to remember it, > you will need to remember it yourself. > > > > > > > > > > On Mon, Aug 8, 2011 at 8:43 PM, kypriakos <demet...@ece.neu.edu> wrote: > > > Exactly! > > > I am getting nulls when accessing the extras that I set from the > > launching intent: > > > @Override > > protected void onNewIntent(Intent intent){ > > // super.onNewIntent(intent); > > setIntent(intent); > > Log.v("NotifServImpl","######### = > > "+intent.getExtras().getString("from")); > > Bundle extras = intent.getExtras(); > > ... > > > I was under the impression that setting the intent in this method > > would guarantee that > > i am working with the newest intent. Is this the right approach? > > > On Aug 8, 2:56 pm, Mark Murphy <mmur...@commonsware.com> wrote: > > > On Mon, Aug 8, 2011 at 2:27 PM, kypriakos <demet...@ece.neu.edu> wrote: > > > > Never mind - most likely missing the Override allows for anything ;) > > > > Bingo. @Override has no effect at runtime, but it's a compile-time > > > sanity check. Rather useful, particularly for classes with lots of > > > generics (e.g., AsyncTask). > > > > -- > > > Mark Murphy (a Commons Guy)http://commonsware.com| > >http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > > > Android 3.1 Programming Books:http://commonsware.com/books > > > -- > > 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 > > -- > 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 at http://groups.google.com/group/android-developers?hl=en