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:

  1. bind service(s)
  2. 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

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -