Android App Development 20150604

Post on 14-Aug-2015

133 views 2 download

Tags:

transcript

Android App Development 6

4 June, 2015

Last Workshop

Adding an Image ImageView element

Adding Audio SoundPool

Creating a signed APK Installing an APK file Changing App icon

Today’s Contents

Creating a signed APK

APK (Android application package) A file format used for installing software on

Android

Creating a signed APK

1. Click on Build > Generate Signed APK in the menu

2. Click on Create New to create a new keystore file

Creating a signed APK

3. Fill in the fields to create your keystore

Creating a signed APK

a file that acts as your signature

key1… …

… …C:\... \MyFirstApp\app\MyFirstApp.jks

JM

You need to fill in at least one field

4. Check Remember password, click on Next

Creating a signed APK

MyFirstApp.jks

5. Click on Finish to create APK

Creating a signed APK

Creating a signed APK

You can publish your app on Google play ($25 one-time registration fee)

Installing an APK file

1. Connect your phone with PC2. Copy APK file on your phone3. Open File Manager App and click APK4. Follow the instruction

Installing an APK file

You need to check“Unknown sources”to install appsoutside of Google Play

Changing App icon

Supported Image Formats PNG (recommended) / JPG

Image Folder Put your icon into folder res/drawable

Changing App icon

icon01.png (96 x 96)

Edit app > manifests > AndroidManifest.xml

Changing App icon

→ “@drawable/icon01”

Wrap Up for Today

Creating a signed APK Installing an APK file Changing App icon

Next Workshop Using the Layout Editor

1 more workshops left.

fin.