android - How to communicate between background services -
i implementing app, in have 2 services. 1 task , pass value service , service task using value. when first service generate first value should start 2nd service. here after values generated first service added in queue in 2nd service. first time when 2nd service starts can set value in queue using intent, don't know how communicate after starting 2nd service. how communicate between these services.
anybody have idea on please me.
as of understanding, may communicate in 2 ways:
bind
service(s)- make use of
broadcastreceiver
within service(s) exchange data/commands
however, suggest not complicate design involving multiple services. in fact, should decide either need ordinary service or can done via intentservice
.
Comments
Post a Comment