开发者

Android, perform action when widget is clicked

Can someone provide me with an example of how to perform an action when the user taps on a widget? The only example I have found launches an activity. I assume that it must still do it with some sort of pending intent 开发者_如何学编程and maybe a broadcast receiver, but I'm not sure how to do it.


Call RemoteViews.setOnClickPendingIntent on the views in your widget (assuming you have views in your widget).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜