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.