开发者

Sharing code among Android applications

开发者 https://www.devze.com 2022-12-18 12:58 出处:网络
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 And

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

精彩评论

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