user3011821
user3011821

Reputation:

How to build my own SDK like mADServer?

I am looking for build my own SDK. I had searched a lot but I cant get clear idea about how to build my own SDK and later I need to integrate it to my project. How can I build my own SDK ?

Upvotes: 4

Views: 442

Answers (2)

Carlos Robles
Carlos Robles

Reputation: 10947

You have to let your code be Library project.

To create a library project, set the Mark this project as library flag in the Android project generation wizard.

enter image description here

or if your project is already generated, you can right click in the project, and then in properties, and check the Is Library option:

enter image description here

To use such a library, in the project you want to use it right-click on it and select properties. On the Android tab add the library project to it.

enter image description here

Instead of this last part, you can take the generated jar of your library porject, and put it in the libs folder of your target project.

You have a complete tutorial here: http://www.vogella.com/tutorials/AndroidLibraryProjects/article.html

(where i took the images from )

Upvotes: 0

Alexander
Alexander

Reputation: 48272

Perhaps a simple Jar would be sufficient. You create a Jar with your classes and then your user adds that Jar to his project and so he can use your classes. The AdMob SDK is done that way.

Upvotes: 1

Related Questions