Android App Distribution Tutorial: From Zero to Google Play Store

From Zero to Google Play Store: learn how to get your completed Android app on the Google Play store in this step-by-step Android app distribution tutorial. By Matt Luedke.

Leave a rating/review
Save for later
Share

You have finished your Android app, and celebrated its perfection with many flagons of ale (or pitchers of beer). Hooray! Now you’re ready to send your app out into the world. Soon it will reside not only on your own Android device, but on the devices of people around the globe. It’s an exciting step!

There are several ways to distribute your Android app. This Android app distribution tutorial will cover two of the most common channels: the Google Play Store, where over 1.8 million Android apps are available, and the Amazon Appstore, which has over 300,000.

In this step-by-step tutorial, you’ll see how to take your finished Android app and release it to the Google Play Store and other stores. Let’s get shipping! :]

Getting Started

To publish an app, you first need … a finished app, of course :] For this tutorial, you’ll use a simple app that allows users to search for books, see book covers, and share books with friends.

Download and unzip this archive and open the project in Android Studio.

Note: If you have a finished Android app of your own, you can use it instead of the sample app, and work alongside this tutorial to put it in the store.

Before going any further, you must set a new package name across the app. The package name needs to be unique and remain unchanged in Google Play. A common format is the reverse-domain name, like this:

com.your_domain_name.app_name

Currently, the best way to refactor an app’s package name in Android Studio is to start in the Project pane of Android Studio, with the Android view chosen. Select the gear icon that looks like this:

gear_icon

You will see a drop-down menu with several project viewing options. Uncheck Compact Empty Middle Packages if it is not already unchecked:

compact_empty_middle_packages

Now you can refactor the parts of the package name separately. Right-click on the package named example, select Refactor\Rename, and change it to your name or domain name. Then do the same for the package omgandroid. Your project should now look like this (with your own names instead of mine):

renamed_packages

Next, open build.gradle (the one labeled Module: OMGAndroid, NOT the one for whole project), and find defaultConfig. Add a applicationId parameter with your new package name:

defaultConfig {
  applicationId 'com.colemanfrancis.bookmastergeneral'
  minSdkVersion 14
  targetSdkVersion 23
}

Finally, open manifest\AndroidManifest.xml, find the manifest tag at the top of the file, and locate the package attribute within it. Update it with your new package name:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.colemanfrancis.bookmastergeneral"
  android:versionCode="1"
  android:versionName="1.0">

Build and run to verify that your refactoring worked correctly. With your unique package name in hand, you’re now ready to package your app for distribution.

Creating a Signed APK

When developing on the Android operating system, you use the Android application package (APK) format to distribute apps.

Android requires that APKs are digitally signed with a certificate before they can be installed. The certificate is used to identify the author of the app. More information about app signing can be found here.

A signed APK can be generated manually from command line or in Android Studio.

In Android Studio, select Build\Generate Signed APK….

generate_signed_apk

Your app only has one module, so select Next.

signed_apk_module

With your app module chosen, you need to tell Android Studio how to sign the APK. You’ll use a key store, which will stay private to you. Android Studio will guide you through creating a new key store; start by selecting Create new….

keystore_info_empty

Choose a filename and location on your system, set and confirm a secure password, and fill in the rest of the information about yourself:

new_keystore

Click OK, and Android Studio will create your key store. You’ll need that file, with its password info, to make any updates to your app, so don’t lose it!

With your new key store, Android Studio returns you to the dialog box you saw before. Now the key store information is pre-filled, so just click Next.

keystore_info_prefilled

Choose a destination folder for your signed APK, specify your Build Type as release, and click Finish.

choose_destination_folder

When the packaging process is complete, Android Studio will notify you that your APK is ready, and let you open it in Finder:

reveal_in_finder

With your APK in hand, it’s time to head to the store.

The Google Play Developer Console

To submit an app to Google Play, you first need a Google Account. Create one here (or sign in, if you already have an account) before going further.

When you are signed into your Google Account, navigate to the Google Play Developer Console. You should see a screen like this:

Google Play Developer Console

Agree to the Google Play Developer distribution agreement, pay the one-time $25 Google Developer Registration Fee, then complete your Developer Profile on this screen:

developer_profile

With your developer account now registered, your developer console has more options. Click Publish an Android App on Google Play to continue.

console_signed_in

Since this is your first application, you’re given a dialog box to specify the app name and a choice on how to begin. Type in your app name and choose Upload APK.

add_new_application

This creates a draft store listing for your app, currently containing nothing except the app title. To begin, click Upload your first APK to Production.

New Store Listing

Choose the APK file you created earlier, and upload it. When the upload is complete, you will see the app listing updated like this:

upload_successful

Notice that the check mark next to APK is green, indicating that your APK is ready!

Time to move on to the remaining check marks…

Completing the Store Listing

Bookmaster General is a pretty simple app, so the rest of the process will be easy. Click on the Store Listing check mark in the menu on the left page and fill in the Short Description and Full Description fields with information about the app:

app_descriptions

Note: For your own app, you will want to create as engaging a description as possible, so start thinking about this early in the development process!

Next, upload at least two screenshots of the app. If you have the app on an Android device, you can simply take screenshots straight from the device.

If you prefer to use an emulator for the screenshots, you can easily make these in Android Studio. Build and run the app, then navigate to the part of the app where you’d like the screenshot.

With the Android Monitor tab opened in Android Studio, click the camera icon on the far left:

screen_capture

Android Studio will present you with the captured image from the emulator. Click Save and select the file location on your system.

Drag these images onto your store listing where you see the following prompt:

add_screenshot

In addition to screenshots, you need to upload a 512×512 high-resolution version of the app icon and a 1024×500 “feature graphic” to display at the top of the page. For our sample app, use these resources:

Sample App Icon

Sample Feature Graphic

Complete the store listing by specifying an Application Type, Category, Content rating, and Contact Email. Other fields are optional.

Scroll back to the top of the store listing and click Save draft. Since the listing is now complete, the Store Listing check mark is now green. We’re making progress!

Click on the Content Rating check mark to see a description of the upcoming content rating questionnaire.

content_rating

This questionnaire asks a straightforward series of questions about the content of the app. For those using our sample app, Bookmaster General is in the Reference, News, or Educational category; answer No to all the content questions. If you’re using your own app, give the appropriate answers.

Once you are finished, click Save questionnaire, then Calculate rating. You will see the ratings for the various locales where your app may be on sale:

ratings_completed

Scroll to the bottom of the list and click Apply rating. The Content Rating check mark is now green.

Select the Pricing & Distribution check mark for the final step: setting the price of your app, and in which countries it will be available. For this example, the app will be free and available universally.

whole_universe

The Free pricing option is selected by default, so keep that choice. Check the box next to SELECT ALL COUNTRIES.

pricing

Scroll down past the list of countries, and you will find several more distribution options. Check the boxes by Content guidelines and US export laws to indicate your app’s compliance with relevant rules, then scroll to the top of the page and click Save draft.

With that, the final check box is green, and the Publish app button in the top-right of the console is now active! When you’re satisfied with your app and store listing, go ahead and click it.

Your app listing status now updates to Pending Publication, like this:

pending_publication

It generally takes at least a few hours for your app to be available in Google Play, so go grab some pizza. Eventually you’ll see a listing like this one:

listed_in_store

Congratulations on your first app in Google Play!

Matt Luedke

Contributors

Matt Luedke

Author

Over 300 content creators. Join our team.