APKs for Google Play and Tablet

Favourite 35 favourites
Tutorial written by MirdovOriginally published on 26th, May 2013 - 2 revisions

Hello this is a tutorial to run games in various construct 2 tablets.
I do not know much about programming and how everyone here on the site had doubts of how to make a game on the tablet radar by Google Play.
After searching a lot and doing a lot of experiences I got wrong somewhere and want to share it.
In this tutorial you will learn how to decompile and compile an apk file, create signature and use the zipalign leaving the apk file ready for publishing on tablet.

You must have an account on google play and a license Construct 2.
- We will use Cocoonjs to generate the apk files;
- We will use Notepad + + to edit the xml file apk;

Download files:

        ApkTool 1.4.3
        JDK 1.6.0
        Android SDK

Now that we have all done we'll start downloads.
Create a folder on Local Disk C: \ with the name Android getting the path as "C: \ Android \".
All other files can be installed wherever you want, I recommend the Local Disk C: \.

Apk file:

Export your game to CocoonJS and then download the file unzip the zip file.
2 apk files will open a 'debug_signed "and" release_unsignad ".

Delete the file "debug_signed" and rename the file "release_unsignad" to: <username> <Game _release.apk and copy the file by pasting it into the folder "ApkTool".

Select the folder "ApkTool" presione [Chift] Right-click the folder and click: Open Command Window Here.

With the command window open type:
Apktool d <username> your file> _release.apk

The command will unpack the apk creating a folder with all your game open the AndroidManifest.xml file inside that folder with Notepad to edit it.

Modify the following lines HTML:

<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="8" /> to <uses-sdk android:minSdkVersion="11" android:targetSdkVersion="14" />.

Now add the line <supports-screens> HTML:
android: largeScreens = "true" and android: xlargeScreens = "true".

Getting this:
<supports-screens android:anyDensity="true" android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:largeScreens="true" android:xlargeScreens="true" />

Save the file and close the program.

Compressing the folder apk:

Even with the open command window type:
Apktool b <username> <folder <filename> _release.apk

Now copy the apk file and paste in the folder SignApk.
If you take time to compress error in the file change <manifest android: versionCode = "25" in the xml file to above:
manifest android: versionCode = "26"

Select the folder "SignApk" presione [Chift] + Right-click the folder and click: Open Command Window Here.

With the command window open type:
Java-jar signapk.jar certificate.pem key.pk8 <filename> _release.apk <filename> _signer.apk

This command will create a file signer.apk that will be used to make a registry key.
Copy the two files apk "and signer release" folder and paste in Android that the Local Disk created in the beginning.

Creating the registry key:

Open the folder that should this JDK 1.6.0 in C: \ Java \ and select the folder "bin" presione [Chift] + Right-click the folder and click: Open Command Window Here.

With the command window open type:
Keytool-genkey-v-keystore C: \ Android \ <filename> _signer.keystore-alias <filename>-keyalg RSA-keysize 2048-validity 10000

This will create a file <filename> _signar.keystore.
Save the file to be able to update signer_.keystore future changes in their games.

In the same command window type:
Jarsigner-verbose-keystore C: \ Android \ <filename> _signer.keystore C: \ Android \ <filename> _release.apk <filename> _signer

Now the file _release.apk this signed, but before it is published on Google Play he has to go through the "zipalign" what about zipalign understand is that it compresses the files and organizes more better too.

Open the Android SDK folder that should this in C: \ AndroidSDK and select the folder "tools" presione [Chift] + Right-click the folder and click: Open Command Window Here.

With the command window open type:
Zipalign 4-v C: \ Android \ <filename> _release.apk C: \ Android \ <filename> _release_XX.apk

The latter name may be the name of your game with the version number in place of the XX example:

Now just post the file in Google play.

I made this tutorial picking up a lot of the internet by adapting and modifying to get here.

Hope that helps the most as I had no luck in finding something explanatory and didactic.

Many errors can occur for type it wrong, stay tuned!

The text is in Portuguese from Brazil and has been translated by Google translator excuse some flaws.

Unlock your full gamedev potential

Upgrade to the Personal Edition of Construct 2, it has way more features and won't holding back from making money and using your full creativity like the free edition does. It's a one off payment and all Construct 2 editor updates are free for life!

View deals

Plus, it's got a lot of additional features that will help you save time and make more impressive games!

Congratulations on finishing this tutorial!

Did you learn a lot from it? Share it now with your friends!

Share and Copy this Tutorial

You are free to copy, distribute, transmit and adapt this work with correct attribution. Click for more info.


Lordshiva1948 44.3k rep

Not bad very good thanks

Monday, May 27, 2013 at 10:01:43 AM
thehorseman007 14.8k rep

Very good tutorial, quite handy and helpful. You can make it more explatonary. But finding the whole things on net is quite time eating than just reading your tutorial.
Thanks for the share.

Friday, May 31, 2013 at 11:49:28 AM
Mirdov 5,863 rep

Obrigado! =)

Monday, June 10, 2013 at 2:24:19 PM
Wenaptic 6,851 rep

muito obrigado eu espero que vocĂȘ continue upload mais tutoriais. =)

Monday, June 17, 2013 at 3:14:40 AM
piszozo 3,386 rep

seems complicated :S could u make a video ?

Sunday, September 22, 2013 at 12:45:15 PM

Leave a comment

Everyone is welcome to leave their thoughts! Register a new account or login.