plusmoDroid
Lurker
I' m trying to launch an activity while clicking on the screen widget.
I've found a way that the click on the screen widget launches the browser using pending intents.
I've tried using something like this, but it doesn't work.
Any ideas of what should I look for?
I've found a way that the click on the screen widget launches the browser using pending intents.
I've tried using something like this, but it doesn't work.
Code:
Intent defineIntent = new Intent(this,myActivityClass.class);
PendingIntent pendingIntent = PendingIntent.getActivity(/*context,*/this,
0 /* no requestCode */, defineIntent, 0 /* no flags */);
updateViews.setOnClickPendingIntent(R.id.widget, pendingIntent);
Any ideas of what should I look for?