我是android开发的新手。 我想在小部件中的按钮上添加点击监听器。 我正在service中更新小部件。 先行致谢。
也许你应该考虑制作一个可点击小部件。
这需要使用:
remoteView.setOnClickPendingIntent(R.id.widgetFrameLayout, pendingIntent);