Java Coding in Eclipse - Jacksonville University

Download Report

Transcript Java Coding in Eclipse - Jacksonville University

1
How to publish your app
CS440
Step 1: Remove any debug logging
2


Good practice: comment out any debug logging
Why?
CS440
Step 2: Build your final apk
3

Use Apache Ant
 For

In a command line run:


windows: http://code.google.com/p/winant/
set path=%PATH%;C:\dev\android-sdkwindows\tools
Go to your project root path then run:
 >android
CS440
update project –t 2 --path .
Step 3: Generate a key
4


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
5






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
6
CS440
Public key cryptography
7
CS440
Step 4: Build your app with the key
8


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
9



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
10






http://support.google.com/googleplay/androiddeveloper/answer/113469?hl=en
http://developer.android.com/distribute/googleplay/publish/preparing.ht
ml
http://www.techrepublic.com/blog/app-builder/app-store-feespercentages-and-payouts-what-developers-need-to-know/1205
http://mobile.tutsplus.com/tutorials/android/publish-to-android-market/
http://adf.ly/3509232/banner/http://androidhelper4u.blogspot.in/search/label/5.%20How%20to%20sign%20and%2
0export%20%20and%20publish%20APK%20application%20file%20in%
20Andrioid
http://en.wikipedia.org/wiki/Public-key_cryptography
CS440
To publish in market
11

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
12


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
13




Google play
Amazon
Send the apk on an e-mail: automatically installs
from gmail accounts
Put it on your website
CS440