Take out the JNI code from main.cpp. It is handled by QuickAndroid class already.