Can someone help me do this? My code is similar:
public CustomClass extends View {
To display my custom view on the main screen, I created a class to extend the broadcast receiver:
public class customAppWidgetProvider extends BroadcastReceiver { public void onReceive(Context context, Intent intent) { String action = intent.getAction(); if (AppWidgetManager.ACTION_APPWIDGET_UPDATE.equals(action)) { RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.main);
But adding a ViewGroup to the ViewGroup link does not work ... The main.xml layout above contains only LinearLayout. I want to add a custom viewer to it. But after starting, nothing is displayed on the screen ...
Please help me do this. Thanks at Advance.
Naidu source share