开发者

Should a sync provider be an Android library or application?

开发者 https://www.devze.com 2023-01-05 03:49 出处:网络
Regarding Android >= 2.0.1. This speaks for Application type of project: The provided sample code makes it an

Regarding Android >= 2.0.1.

This speaks for Application type of project:

  • The provided sample code makes it an application.
  • Easy testing in dev tools.

This speaks for Library type of project:

  • From another app开发者_高级运维lication wanting to trigger a sync, I would like to include it as a library dependency.

What other benefits/drawbacks can you see with either type of project ?


Make it work as a part of your Application first and (if necessary) refactor into a library later.

0

精彩评论

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