i have bluetooth service have been using in app, wondering benefits using service handle bluetooth stuff on creating bluetoothmanager
class? services seem little complicated bind()
stuff. benefit can see having service if wanted open service other apps use.
the primary role of service keep process around bit longer while in background. lacking service, android may terminate process when no longer in foreground.
this covered part of the documentation on processes , lifecycle.
there other reasons use services, such ipc suggest.
services seem little complicated bind() stuff
note services not have use binding pattern, though option.
Comments
Post a Comment