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.