2012-07-15 73 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

相关问题