show app widget selection list
How to open app widget installation list that usually opens by users ?
long click on home screen and open wdget , I want to show this list .
I know this codes run when I user opens widget selection :
Starting activity: Intent { act=android.appwidget.action.APPWIDGET_PICK cmp=com.android.settings/.AppWidgetPickActivity (has extras) }
Displayed activity com.android.settings/.AppWidgetPickActivity: 470 ms (total 470 ms)
I assume which extras used for list ? thanks
Take a look at Commonsware's answer to this question: Add widget to homescreen from Android application
You can open the list, but you won't be able to use the selection, ie, install the appwidget. In order to do that your application must have an AppWidgetHost working (home screen apps fall into this category)
链接地址: http://www.djcxy.com/p/50580.html下一篇: 显示应用程序部件选择列表