Retrieve text from a RemoteViews Object

前端 未结 4 2201
北荒
北荒 2021-02-09 22:25

I need to retrieve some text from a RemoteViews object. It is possible for me to get the LayoutId, but I have no idea how to retrieve text from a TextView

4条回答
  •  情歌与酒
    2021-02-09 23:00

    CommonsWare in this question says:

    ... App widgets are write-only: you can push data to them, but you cannot read them. Instead, when you update your app widget with new text, you will need to store that text somewhere, perhaps in a file.

    His answer seems to be logical.

提交回复
热议问题