如何在android中启动Widgets List?

时间:2014-02-07 06:02:29

标签: android

如何从我的应用程序启动小部件选择菜单?

  

enter image description here

1 个答案:

答案 0 :(得分:0)

AppWidgetManager manager=AppWidgetManager.getInstance(this);
List<AppWidgetProviderInfo>infoList=manager.getInstalledProviders();
for(AppWidgetProviderInfo info:infoList)
{
   Log.d(TAG, "Name-"+info.name);
  Log.d(TAG, "Configure Name-"+info.configure);
  Log.d(TAG, "Provider Name-"+info.provider);
}