And I start the intents each time with this:
Intent intent = new Intent();
intent.setClass(androidContext, myClass.class);
intent.setFlags(intent.FLAG_ACTIVITY_NEW_TASK);
intent.addFlags(intent.FLAG_ACTIVITY_SINGLE_TOP);
intent.putExtra("from", stop);
androidContext.startActivity(intent);
On Aug 9, 1:26 pm, Jim <[email protected]> wrote:
> Since setIntent() stores a reference to the intent sent to
> onNewIntent(), you need to either capture the data there or copy the
> Intent to a local variable and reference it. Once onNewIntent()
> finishes, the Intent goes away and your reference is null.
>
> Try that...
>
> -Jim
>
> On Aug 9, 10:46 am, kypriakos <[email protected]> wrote:
>
>
>
>
>
>
>
> > > Blech.
>
> > he he ;)
>
> > > Use the Intent supplied to onNewIntent(). The Intent returned by
> > > getIntent() will always be the original Intent used to create the
> > > activity.
>
> > But I am - and that's where the null exception occurs. Not sure if the
> > setIntent or the super are needed. I will poke around a bit more to
> > see what is going on. But if the Intent supplied by the onNewIntent()
> > is what I need then that puts me on the right path.
>
> > Thanks again guys
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en