1) Open CMD and then go to c:\Program Files\Java\jdk1.6.0_25\bin
2) Setting up the keystore
keytool -genkey -v -keystore c:\android\mks -alias myapp123 -keyalg RSA –keysize 2048 -validity 10000
enter a password (and again)
enter your name details (optional)
enter y to keep and progress…
re-renter your password
3) Export unsigned APK from Eclipse then sign it…
Export by Right Click > Android Tools
jarsigner -verbose -keystore c:\android\mks d:\myapp.apk myapp123
4) check it’s signed OK by using jarsigner verify
jarsigner –verify –verbose d:\myapp.apk
5) Zip align your code…
Go to Andriod-sdk-windows-tools
(It always uses an int value of 4 for byte ordering - this isn't API level etc)
zipalign -v 4 your_project_name-unaligned.apk your_project_name.apk
eg zipalign -v 4 d:\GeoSensorLogger.apk d:\GeoSensorLogger_signed.apk
Put the apk file on your phone.. or marketplace…
No comments:
Post a Comment