Creating a library for Android
I already went through the process of creating an application from the command line. This time I am going to show how to create a library project and integrate it into your app.
To create your library project create a folder and execute this command from inside that folder:
1
2
3
4
android create lib-project \
--name <project_name> \
--target 1 --path . \
--package com.example.whatever
Then you can you ahead and write some code. I created a view that will print a hello message (src/com/ncona/hello/Hello.java):