Easy way to create Android jar files

I’m adding support to serial port on our tablet device and this is the way I create a jar file to let external application to recognize the Android Serial API:

$ mkdir -p android/serialport
$ cp target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes/android/serialport/SerialPortFinder.class android/serialport/
$ cp target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes/android/serialport/SerialPort.class android/serialport/
$ jar cvf serial.jar android/serialport/SerialPort.class android/serialport/SerialPortFinder.class
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s