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
Post a Comment