I am using an AppWidgetProvider and attempting to override the onEnabled which I assume is what is called when the app gets added to the home screen from the user. My AppWid
The buildRemoteViews() method isn't how you get a RemoteViews object in a widget; use a constructor instead.
RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.appwidget_provider_layout);
No offense, but this is pretty clearly laid in the example in the API guide for App Widgets.