...
- Download Android sdk https://developer.android.com/sdk/index.html
- Install Cordova Comannad Command Line Interface: http://cordova.apache.org/docs/en/3.4.0/guide_cli_index.md.html
- Edit your path variable:
PATH=/path/to/android-sdk-linux_x86/tools/:/path/to/android-sdk-linux_x86/platform-tools/:$PATH
...
- Test in emulator:
cordova emulate android
Upload on device:
cordova run --device
See logs (device/emulator):
adb logcat
For more see the guide from cordovahave a look at the CLI-Guide: http://cordova.apache.org/docs/en/3.4.0/guide_cli_index.md.html
...
Steps to create the MobileFacts under cordova 3.4.
- edit {{edit
MobileFacts/platforms/android/AndroidManifest.xml
}} and adjust {{theandroid:versionCode
}} (mandatory for new release) and {{theandroid:versionName
}} - add the SpringPlugin, which includes the mobile sensor to the project {{project
cordova plugin add ../SpringPlugin
}} - cd into {{into
MobileFacts/platforms/android
}} and execute {{executeant release
}} - sign the apk: {{
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -signedjar ../bin/MobileFacts-release-signed.apk -keystore ../keys/keystore-android ../bin/MobileFacts-release-unsigned.apk mobile-facts
}} - align the apk: {{
zipalign 4 bin/MobileFacts-release-signed.apk bin/MobileFacts-release-signed-aligned.apk
}}
Done (upload the MobileFacts-release-signed-aligned.apk to the store)