broadcastreceiver pass to the activity monitor data such as how to get ah, I want to state the status of the phone returns with static activity in addition there are other ways to do <-! Main posts under Banner (D4) -><-! Posts under the main text (D5) -> Reply: Try intent pass data, you can bundle in intent, the data on the bundle inside. Reply: I am a broadcast to the activity in the transfer ah can not onreceive Reply: Nobody knows? Reply:
You use a broadcastreceiver receiving broadcast, then broadcastreceiver using intent to pass values back also ok ah! Rao circle suddenly wears my own radio receiver to send yourself ah! Lz understand the problem. Reply: Register a broadcast receiver Activity, Action judge received broadcast if you want, and if that is the case, then the state judge. Reply: I say pass a value between recipients and activity than broadcast radio broadcast receivers to transmit data ah Reply:
onRecieve startActivity in tone and intent to put the data inside. Reply: Dude you do not have the solution, how to solve, I would like to know how to get Reply: You add a broadcast in which a service, which monitor phone status. If you want a state, then sends a broadcast. Then an internal activity inside a custom class that inherits from broadcastrecivier, this class has a rewriting method by intent.getAction () can get an action, if and broadcast service you sent me the same words, and then you can do whatever you want things Reply: Are Activity already exists? If it is a start Activity, following methods can be used Intent intent = new Intent (this, BroadcastClass); intent.putExtra (name, value); sendBroadcast (intent); If it already exists, you can use the Handle pass parameters! ~ Reply: Upstairs answer questions which are Activity brothers say in passing parameters to broadcastreceiver Alas Reply:
No comments:
Post a Comment