Android: Getting a Service's Messenger after starting it from an Activity -


i'm using messengers communicate between activities , service.

when start service using bindservice(), can service's messenger through ibinder that's returned. however, don't see obvious way service's messenger if start service using startservice() instead. thanks!

however, don't see obvious way service's messenger if start service using startservice() instead.

use startservice() send commands service. can call many times necessary. supply activity's messenger via intent extra. way, not need service have own messenger, let alone need messenger activity.


Comments