Or use PendingIntent.FLAG_UPDATE_CURRENT; just be careful that each active
instance has its own unique Intent.

On Wed, May 20, 2009 at 1:16 PM, Jeff Sharkey <[email protected]> wrote:

>
> Remember that PendingIntents aren't keyed using extras:
>
> http://groups.google.com/group/android-developers/msg/b296f43ae70c4587
>
> You could hack the extras through by mangling them into Uri
> parameters, or if you're using a ContentProvider, just point to a
> specific row.
>
> j
>
>
> On Tue, May 19, 2009 at 1:28 PM, Israel Ferrer <[email protected]> wrote:
> >
> > Hi everyone.
> > I am just making some AppWidget and I want to pass some Strings
> > through UpdateView to an Activity. But the Bundle is null.
> >
> > I try this:
> > -Widget.java
> >                      Intent defineIntent = new Intent(context,
> > Visor.class);
> >                       defineIntent.putExtra
> > ("org.rss.androides.post2","artist");
> >                       PendingIntent pendingIntent =
> > PendingIntent.getActivity(context, 0, defineIntent, 0);
> >                       updateViews.setOnClickPendingIntent
> > (R.id.widget, pendingIntent);
> > -Viewer.java
> >          Bundle b = intent.getExtras();
> >                if (b == null) {
> >                    finish();
> >                    return;
> >                }
> >
> > b is always null.
> > Can you help me? I can use a DB but I only need 4 strings... its a
> > little expensive make a DB for a few strings.
> > Thanks in Advance
> >
> > >
> >
>
>
>
> --
> Jeff Sharkey
> [email protected]
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to