Posts tagged ‘release’

Sign align and release Android application

In order to release your app in the Android market place you need to digitally sign it. The instructions are here. But in short I will show you what you need from the command line, you won’t have to read all the instructions. First off make your app .apk name something different then what your going to use in the end. As the process requires the input and output to have different file names.

Lets take a look, this example is from DOS command line

Create the signature key
C:\Temp> keytool -genkey -v -keystore c:\temp\release-key.keystore -alias MyAlias -keyalg RSA -keysize 2048 -validity 10000

Sign using the key
C:\Temp> jarsigner -verbose -keystore release-key.keystore release.MyApp.apk MyAlias

Verify that it took
C:\Temp> jarsigner -verify -verbose release.MyApp.apk

Run the align tool as recommended
C:\Temp> zipalign -v 4 release.MyApp.apk MyApp.apk

And your all done, now publish it and start watching the downloads.