Thursday, January 23, 2014
android broadcast confusion
Sign up android.permission.RECEIVE_BOOT_COMPLETED, and the interface can achieve BroadcastReceiver at system startup, open services and other matters can be done after receiving the message.
But like android.permission.ACCESS_NETWORK_STATE this detection network or low battery message could be able to receive messages without opening the app and open the appropriate service when onReceive it?
I did experiment is open app, absolutely can receive any messages, but when you turn is less than acceptable.
If the app does not start you can not accept the message, the message that the boot is how to accept it?
Reply:
Written in xml in broadcast receiver can be permanent, while Java is not registered resident
Reply:
LZ tell you that the next broadcast of changes
4.01 Boot broadcasting system needs to have permissions to listen to
2 If an application does not start before too (after the installation has not started), was not received such a broadcasting system,
what network changes
Reply:
If an application before
Upstairs positive solution
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment