Re: [android-developers] can't launch activity from my appwidget

2011-06-12 Thread Kostya Vasilyev
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

Re: [android-developers] can't launch activity from my appwidget

2011-06-12 Thread Mark Murphy
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

[android-developers] can't launch activity from my appwidget

2011-06-12 Thread ABSOLUT
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