rich
rich

Reputation: 191

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

Upvotes: 3

Views: 427

Answers (1)

Michael Krauklis
Michael Krauklis

Reputation: 3954

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.

Upvotes: 2

Related Questions