开发者

Does Android provide any versioning mechanisms for AIDL interfaces?

We're 开发者_如何学JAVAplanning to export an application layer AIDL interface. What are some best practices with regards for managing version compatibility? Does Android provide any version-related mechanisms for AIDL interfaces?


Today - almost 6 years after you posted this question - I am asking myself the same question and there still seems to be no official solution. The official documentation simply states:

Caution: Any changes that you make to your AIDL interface after your first release must remain backward compatible in order to avoid breaking other applications that use your service. That is, because your .aidl file must be copied to other applications in order for them to access your service's interface, you must maintain support for the original interface.


It would be pretty trivial to put and verify either a string or integer version number in the parcel.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜