Getting an .apk into the Google Play store


This is mostly for my own reference but I hope someone else can find it useful too :)
  1. Disable debugging in your AndroidManifest.xml file by setting android:debuggable="false” in the “application” node.
  2. cordova build android –release
  3. jarsigner -verbose -sigalg MD5withRSA -digestalg SHA1 -keystore yourkey.keystore app.apk alias_name (assuming you’ve generated a key beforehand using keytool in the JDK bin directory)
  4. zipalign -v 4 app-release-unsigned.apk app.apk (obviously replace “app” with your app name)
Zipalign must be the last thing that happens!
Useful links:
http://developer.android.com/about/dashboards/index.html#Platform
http://chris-allen-lane.com/2012/12/phonegap-compiling-a-release-apk-without-using-phonegap-build/
http://iphonedevlog.wordpress.com/2013/08/16/using-phonegap-3-0-cli-on-mac-osx-10-to-build-ios-and-android-projects/