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

