Games for Tablet

1

Stats

3,914 visits, 6,731 views

Tools

Translations

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Published on 26 May, 2013. Last updated 19 Feb, 2019

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:

        [url=http://www.4shared.com/rar/858pShif/SignApk.html]SignApk[/url]
        [url=http://www.4shared.com/rar/GKzL8En5/apktool143.html]ApkTool 1.4.3[/url]
        [url=http://www.oracle.com/technetwork/java/javase/downloads/jdk6downloads-1902814.html]JDK 1.6.0[/url]
        [url=http://developer.android.com/sdk/index.html]Android SDK[/url]

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:

Construct2game_release_10.apk

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.

  • 0 Comments

Want to leave a comment? Login or Register an account!