Refer to the Android.mk file inside the Calculator app. It uses external jars. I am also pasting a sample ...
stackoverflow.com