何时使用基于帮助的服务? [英] When to use an aidl based service?

查看:99
本文介绍了何时使用基于帮助的服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在什么情况下会使用 AIDL 定义服务接口正确的决定(而不仅仅是创建 service 类的扩展)?

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)?

推荐答案

如果您希望应用程序进程之外的类访问服务,则需要使用AIDL.如果仅从应用程序内部使用服务,则可以使用

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.

这篇关于何时使用基于帮助的服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆