开发者

get text from text view in the widget provider

开发者 https://www.devze.com 2023-03-26 18:59 出处:网络
I have a开发者_运维技巧n Android widget which I\'m working at. I am in the onReceive() method from a provider class, and I don\'t know how to get the text of one of my TextViews. I know how to get the

I have a开发者_运维技巧n Android widget which I'm working at. I am in the onReceive() method from a provider class, and I don't know how to get the text of one of my TextViews. I know how to get the text in an activity class (e.g: (TextView)findViewById(R.id.textView1)), but I don't know how to get it inside of a provider class.

Can anyone help me?

Thanks

0

精彩评论

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