开发者

Sharing code among Android applications

I'm trying to come up with a best开发者_开发问答 practice for sharing code among a group of Android applications. For example, suppose I have a content provider that I want to access from several Android applications. I'd like to have a class that contains static members for content URIs, column identifiers, etc. This class would be shared by the content provider implementation as well as the applications that use the content provider. What is the best way to do this in Eclipse? Thanks.

-rich


For common libraries I've written I just compile into a jar. Then add that jar to the classpath of each project that needs it.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜