RemoteView ADT21 layout parameter

view full story

http://stackoverflow.com – I am trying to set the text of a TextView on an AppWidgetProvider class from a Service. On the service's OnStart() method, I gave this RemoteViews rv = new RemoteViews(this.getApplicationContext().getPackageName(),R.layout.main); But it is showing that 'main' cannot be resolved in "R.layout.main". I am able to assign only integer values as the second parameter. I heard there are issues with ADT21, is this one among them? And none of the Log.d() statements inside the AppWidgetProvider as well as the service are printing messages on the LogCat. Please help. (HowTos)