get text of a TextView in android home widget (not in activity)?

前端 未结 2 932
死守一世寂寞
死守一世寂寞 2021-01-22 00:06

I just begin programming with android home widget, so i could set text to a textview in home widget from my widget provider by settextviewtext() but when i want to get text from

相关标签:
2条回答
  • 2021-01-22 00:22

    read this for widget tutorial and what you can do with it.

    0 讨论(0)
  • 2021-01-22 00:37

    CommonsWare in this question says:

    You can't. 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.

    0 讨论(0)
提交回复
热议问题