开发者

Should a sync provider be an Android library or application?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜