0

There are several methods to do IPC in Android - Content Provider, Message, AIDL, Async Task, IntentService ...

Seems like each of them aims to solve particular problem.

How to decide which I should use?

I need a service keep running in background, at the same time other services or activity may acquire data from this service.

Thanks in advance!

Qiao
  • 452
  • 5
  • 15

1 Answers1

1

If you need a service keeps running in the background, I think you should try to implement a foreground service.

You can read this post for data exchange between activity and service.

nfsnfs
  • 11
  • 1