开发者

How to pass value from Broadcast receiver to Activity in android?

开发者 https://www.devze.com 2023-02-14 11:03 出处:网络
I am 开发者_开发技巧developing the sample application in android.I want to know how to pass the variable from broadcast receiver to to the Activity class

I am 开发者_开发技巧developing the sample application in android.I want to know how to pass the variable from broadcast receiver to to the Activity class

Please any one help me how to do that in android Thanks in advance


If you are using Intent to start an Activity,
then send values to the intent by using intent.putExtra(key, value) and get the same in your Activity.

0

精彩评论

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