I create three widgets for my application, when I drag three widgets to the main screen, I get the same widget layout, but when I update, the widget layout will change.
How can I update three widget layouts right after dragging and dropping to the main screen?
Here is my code:
public class FullWidgetProvider extends AppWidgetProvider { private int widgetID; private static SimpleDateFormat formatter = new SimpleDateFormat("dd MMM yyyy hh:mm:ss a"); static String strWidgetText = ""; @Override public void onDeleted(Context context, int[] appWidgetIds) {
source share