Tin Cans 4: Get your game on Google Play

In the last part, you compiled your game to an android .apk file, and put it on your phone. Now, it's time to get it out into the world!

Replace the Links in the Share Menu

This is something I've removed from my game, but it's part of the sugarcane functionality.
The share menu in sugarcane works based on the url of the current page. This works in a browser when the file is hosted on the web, but in the app, that url doesn't exist.
What you'll need to share instead is the url of the game on the Google Play store, for example: https://play.google.com/store/apps/details?id=net.... (This is the "ID" you gave the game in part 3)

Find the code that looks like this:

<ul id="shareMenu" data-role="listview">
<li onclick="javascript:location.href='http://del.icio.us/post?title='+tale.get('StoryTitle').text+'&url='+location.href">Delicious</li>
<li onclick="javascript:location.href='http://facebook.com/share.php?t='+tale.get('StoryTitle').text+'&u='+location.href">Facebook</li>
<li onclick="javascript:location.href='http://stumbleupon.com/submit?title='+tale.get('StoryTitle').text+'&url='+location.href">StumbleUpon</li>
<li onclick="javascript:location.href='http://twitter.com/home?status=Reading%20'+location.href">Twitter</li>

And replace "location.href" with the url and ID so it looks like this:

<ul id="shareMenu" data-role="listview">
<li onclick="javascript:location.href='http://del.icio.us/post?title='+tale.get('StoryTitle').text+'&url=https://play.google.com/store/apps/details?id=net.gritfish.d4">Delicious</li>
<li onclick="javascript:location.href='http://facebook.com/share.php?t='+tale.get('StoryTitle').text+'&u=https://play.google.com/store/apps/details?id=net.gritfish.d4">Facebook</li>
<li onclick="javascript:location.href='http://stumbleupon.com/submit?title='+tale.get('StoryTitle').text+'&url=https://play.google.com/store/apps/details?id=net.gritfish.d4">StumbleUpon</li>
<li onclick="javascript:location.href='http://twitter.com/home?status=Reading%20https://play.google.com/store/apps/details?id=net.gritfish.d4">Twitter</li>

Replace the Loading Screens

Before we get started adding your game to Google Play, you'll probably want to replace all the default loading screen images in /Resources/android/images/. It's a lot of work, but it'll ensure your game looks good. If you don't have image editing software on your computer, there's a free photoshop equivalent at http://pixlr.com/editor/

Once you're done, recompile your .apk file.

Sign Up for a Google Play Account

First, head to https://play.google.com/apps/publish/ and set up an account, if you don't have one already. Once you're in, click the 'Add new application' button.

Upload your .apk file

Create and upload your assets.

For your screenshots, you can take them on your device (often by pressing the power button and the volume down button at the same time, but it might vary by device).

For the other images, it's up to you!

High-res icon
512 x 512

Feature Graphic
1024 w x 500 h

Promo Graphic
180 w x 120 h

If you want to set a price for your game, do it now.
If you publish to the store as a free app, you can't charge for it later.

When you're done - publish the game and go make yourself a coffee and wait - it can take anywhere from minutes to an hour to appear in the play store on your phone. When it appears, make sure to install it and test it on your device. If everything's working, get out there and tell people to download it, because you're done!