How to make an Android app from Game Maker: Studio
written by: supernova
Interested making your own mobile phone app? As a start up, Android app is the easiest one to debug and build compares to Windows Phone and iOS. This is a guide how to build an Andrid app!
Things you will need:
- Game Maker: Studio (Professional with Android export or Master)
- Device with Android 2.2 or above (Android Jellybean/Kit-kat recommended)
- Android SDK bundle installer for Windows without eclipse (Download link)
Set it up!
- Install Game Maker: Studio (obviously), register it and update it to the latest version (stable recommended)
- Download and install the Android SDK into directory C:\Android. Do not install the SDK in Program Files! This may cause issues when linking with Game Maker: Studio.
- If the installer ask you install Java JDK, do it! Trust me, it's part of it.
- Once it's installed, open SDK Manager for Android SDK. On the list, check:
- Android SDK Platform Tools
- Android 2.1 (API 7)
- Android 2.2 (API 8)
- Android 2.3.3 (API 10)
- Android 3.2 (API 13)
- Android 4.0 (API 14)
- Android 4.0.3 (API 15)
- Android 4.1.2 (API 16)
- Android 4.2.2 (API 17)
- Android 4.3 (API 18)
- Android 4.4.2 (API 19)
- Android [Any newer Android versions]
- Take your time while all of them downloaded/installed (about an hour)

- Remember update your SDK about once a month!
- Open Game Maker: Studio (open a random project) and go to File > Preferences. Find Android Tab and locate the Android SDK and Java JDK.

- Go to Keystore tab and type/generate your own Keystore! REMEMBER, always back up your keystore!! If you did not back it up, it can cause a massive issue. Especially uploading your game to Google Play store! Your keystore file should located in the "Private Keystore File" textbox.

- Go to SDK tab again and click "Check Android SDK", if it says SDK+JDK+KeyStore OK your good to go!
Set up for Android debugging
Wanna test your game on your Android phone instead on the computer? This sections covers how to set up your Android/computer for debugging! If you don't wish to debug on your phone, which is not recommended, skip to the next section.
- If your Android phone does not have developer option in Settings, simple go to Settings > About phone and tap on Build number 7 times. (If your Android phone is different, Google: enable debug option on [your device name/model])

- Go to Settings > Developer and check "USB debugging" to enable syncing your game to the device for testing

- Connect your device to your computer and make sure your computer successfully installed your phone's driver. If you have any issues with drivers, Google is your friend!
Testing your game
Once all of your stuffs are properlly set up. It's time to make your own game and test it! Before you debug, select Target > Android.
Then click the green debug button to test your game! Make sure your Android is not locked nor busy! If anything fails, double check for errors! This window below shows you that the game is debugging on your Android device:
Once you're running the game, check for bugs/glitches on your game. There are many helpful recources at YoYo Games Community. If your game runs on keyboard, don't forget to add on screen keyboard.
example in Draw GUI action for virtual keyboard:
virtual_key_add(0,display_get_height()-200,200,200,vk_left);
Baking your final product
Before you compile your Android app, Make sure all of the blanks are properlly filled up. Custom icons and Splash screen are highly recommended. On the graphics tab, it's recommended to support ONLY to devices with GPU. For texture pages, the higher the better framerate, the lower the better performance. Also, make sure properlly set up the permissions for your game!
Once your game is fully tested and on your Android with no issues, it's time to compile it! Simply click an icon where you create executables for target or File > Create Application. This process should take about 1-15 minutes depending on your computer speed.
Once the green run button and the create executable button is no longer greyed out, and there's no error message in the compile messages. Your game (.apk file) is fully compiled at the folder you saved! Help yourself testing your final product!
Built an original game? Why not share it on Google Play for free or sell it? You have to pay $25.00 (just once) for publishing your Android apps. Simply go to Google Play Developer and register your account!
Follow the steps Google provide you and make sure all of the required form are selected! Once you got everything done and uploaded your Android .apk file, press Publish button on the top right and your game should take couple of hours to get listed in the store!