When to use an aidl based service?

前端 未结 4 813
萌比男神i
萌比男神i 2021-01-11 12:45

Under what circumstances would using AIDL to define a service interface be the correct decision (rather than just creating an extension to the service class)?

4条回答
  •  情深已故
    2021-01-11 13:14

    You need to use AIDL if you want a class outside of your application's process to access the Service. If you're only using the service from inside your application, you can use a local service.

提交回复
热议问题