130 likes | 306 Views
How to publish your app. Step 1: Remove any debug logging. Good practice: comment out any debug logging Why?. Step 2: Build your final apk. Use Apache Ant For windows: http://code.google.com/p/winant / In a command line run: set path=%PATH%;C:devandroid-sdk-windowstools
E N D
How to publish your app CS440
Step 1: Remove any debug logging • Good practice: comment out any debug logging • Why? CS440
Step 2: Build your final apk • Use Apache Ant • For windows: http://code.google.com/p/winant/ • In a command line run: • set path=%PATH%;C:\dev\android-sdk-windows\tools • Go to your project root path then run: • >android update project –t 2 --path . CS440
Step 3: Generate a key • When debugging with eclipse the package is technically signed • You need to sign your app with a real key • What is a key??? • In the project base directory run: keytool -genkey -v -keystore my-release-key.keystore CS440
More info about keys • Trust needs to be established between market and developer • The key is your personal signature • You can use the same key for multiple app releases • What is a private key? • What is a public key? • What is authentication? CS440
Public key cryptography CS440
Public key cryptography CS440
Step 4: Build your app with the key • Run: ant release or • With Eclipse • To export an unsigned APK from Eclipse, right-click the project in the Package Explorer and select Android Tools > Export Signed Application Package. • Use the key you just created • Then specify the file location for the unsigned APK. CS440
Step 4: Build your app with the key • You app is built with your key… time to upload to the market! • Register to the market ($25 fee) • Upload your release apk CS440
References • http://support.google.com/googleplay/android-developer/answer/113469?hl=en • http://developer.android.com/distribute/googleplay/publish/preparing.html • http://www.techrepublic.com/blog/app-builder/app-store-fees-percentages-and-payouts-what-developers-need-to-know/1205 • http://mobile.tutsplus.com/tutorials/android/publish-to-android-market/ • http://adf.ly/3509232/banner/http://android-helper4u.blogspot.in/search/label/5.%20How%20to%20sign%20and%20export%20%20and%20publish%20APK%20application%20file%20in%20Andrioid • http://en.wikipedia.org/wiki/Public-key_cryptography CS440
To publish in market • AndroidManifest: • Install location: auto • Version code • Version • From eclipse Export => generate new key • You can use keypass to save your keys • developer.android.com => publish • To make money: setup paypal account • At least two screenshots needed • Application icon needed
To publish a change • Make a change • Goto manifest: • Change version code • Change version • Do not regenerate the key or keystore • Just use different keys for different applications • Export again CS440
Different ways to publish • Google play • Amazon • Send the apk on an e-mail: automatically installs from gmail accounts • Put it on your website CS440