I am trying to get the list of provider info for all the widgets, presented in the device from my application. The code snippet is given below:
AppWidgetManager manager = AppWidgetManager.getInstance(context);
List<AppWidgetProviderInfo> infoList = manager.getInstalledProviders();
I have 26 widgets present in my device and it gives list with only 15 widgets' provider info. But as the definition of getInstalledProviders()
says, it returns a list of the AppWidget
providers that are currently installed. In case if it gives provider info for only installed appwidgets, then how can i get the complete list of AppWidget
provider in the device?