There is an alternate way. Create a bundle, put the bundle into the intent, extract bundle from the received intent at the receiver side. This might help, although I am not sure. But worth a try, before going to db.
Asides, when you do putExtra, does the elementcount inside intent object increase? -vignesh On Wed, May 20, 2009 at 1:58 AM, 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 > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

