I am working to make Launcher Application. I have created some temporary widgets for some purpose in my home screens. Now I want to remove that widgets from screen without drag and drop. So I want to know that it is possible or not ? And if possible then give some hint. I am also happy if i can remove widget on click of itself widget.
I have tried this but not working for me appWidgetHost.deleteAppWidgetId(launcherAppWidgetInfo.appWidgetId);