android service, broadcast and activity -


current have 3 classes: activity (a), broadcastreceiver (b) , service (c).

assuming binding c , now, b new intent system.

can b bind c (exactly same one) directly?


i find out there peekservice method in broadcastreceiver.

my question can bind running service in broadcastreceiver?

if have registered receiver dynamically context.registerreceiver() can bind service onreceive method.

however, if have declared broadcastreceiver in manifest, should not bind service onreceive() method. can start service though - cannot bind because bindservice() asynchronous. more details in android dev guide , onreceive documentation.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -