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.
精彩评论