2012-07-15 50 views

回答

2

我剛打開Add Widget一邊看logcat的,我看到這一點,也許這將有助於:

Starting: Intent {act=android.appwidget.action.APPWIDGET_PICK}

+1

謝謝你的提示。按照你的提示,我看了看發射器(https://android.googlesource.com/platform/packages/apps/Launcher)的代碼,用下面的代碼來啓動列表: \t \t \t \t \t \t意圖pickIntent =新的意圖(AppWidgetManager.ACTION_APPWIDGET_PICK); \t pickIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID,1024); startActivityForResult(pickIntent,9); – Hong 2012-07-16 02:45:21

+2

但是,單擊一個小部件不會執行任何操作。 – Hong 2012-07-16 02:57:39

+0

@Hong是否可以從該選擇器對話框中添加小部件? – 2016-08-16 20:30:28

相關問題