Retrieve Text from Textbox in Android widget?

前端 未结 1 1895
旧时难觅i
旧时难觅i 2020-12-07 04:38

My App widget has a TextView that it\'s text changes in interaction with user.Now how I can Retrieve Text from it in run time?

1条回答
  •  孤城傲影
    2020-12-07 05:44

    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)
提交回复
热议问题