David,
In the code you posted, I don't see a call to
appWidgetManager.updateAppWidget with the remoteViews object you're
building. RemoteViews is not at all like an RPC connection where you do
stuff "on one side", in your code, and it magically appears "on the other
side", in the widget. You need
I'd get rid of all the getApplicationContext() calls. The Context you
are supplied in onUpdate() will work just fine for all of those.
Also, FLAG_ACTIVITY_NEW_TASK is a flag for Intent, not PendingIntent.
Please move it to a setFlags() call on the Intent object.
On Sun, Jun 12, 2011 at 1:40 PM, A
Hi,
I have a button in my appwidget that I would like that launch the
activity. I have this in the code:
public void onUpdate(Context context, AppWidgetManager
appWidgetManager,
int[] appWidgetIds) {
RemoteViews remoteViews = new RemoteViews(context.getPackageName(),
R.layout.widget
3 matches
Mail list logo