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

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -