Home > Mobile >  Communication problems between the Service
Communication problems between the Service

Time:04-15

Now I use the BroadcastReceiver to send each other, the feeling is too much trouble, send the past still have to use radio to send back the message, is there a way to directly can return values

CodePudding user response:

It depends on you are communication across applications, or application of communication within the
Cross reference: AIDL, BroadcastReceiver, Messenger
Application: inside the SharedPreferences, singleton, interface callback, EventBus, etc

CodePudding user response:

Is the same process, to achieve two main service can send messages, and can return a value
  • Related