Unity – Install and run an APK on all connected devices with a bash script on OS X


As a mobile game developer you need to deploy your game on multiple devices, especially on Android devices.

Unity can only Build and run on ONE device.

If you connect several devices the build will be run on one device only.

So if you want to install and run an .apk file on all connected devices you can use this script:

  • Create a file named push_apk_all_devices.sh
  • Copy and paste this script:

  • First, you need to install the Android SDK
  • Open a Terminal window
  • Type adb and Press enter in order to check if the adb command is installed

  • Check if the devices are connected and type adb devices

  • Build an .apk file with Unity
  • Then launch this script: sh path/push_apk_all_devices.sh (just drag and drop the script in the terminal window)
  • When it’s done press CTRL + C to stop the script.

SOURCE: https://stackoverflow.com/questions/8610733/how-can-i-adb-install-an-apk-to-multiple-connected-devices/14822827

Unity – Get the max android volume with JNI without native plugin

In the previous post we learn how to get the current volume.

As I said the max volume can be different according the OS version or de device.

Now let’s get the max volume in c# without native plugin:

Unity – Get current android volume with JNI without native plugin

To get the current volume value on Android in Unity without plugin you can use this c# script.
Thanks to the Java Native Interface.

You will get an integer between 0 and ?, 15, 13, 25, …
NB: Actually the max volume value depends of the OS version.

Tutorial: Create a pre-filled bug reporter or a contact form for your games with Google Form


In this tutorial we will create an advanced online form with notifications for your games with Google Form in few minutes for free.
This feedback form is compatible with Web games, Flash games, Unity games, mobile games, etc.

When a lambda player send you a message about an issue in your game you will love to know a maximum of details about the player device.
I’m sure nobody like to receive this kind of message:

2014/12/05 – john.do@myass.com – I cant play

OK! keep calm and reply with this common questions again: Hello, What is your device, the version of your OS, the name and the version of your browser, the language of your browser, the name of your grandma, etc.

A lot of people don’t know how to get all this informations so let me show you how to create a useful feedback form to get important informations about players devices.

Crate a form with Google Form

Google Form

  • Now rename the name of the Form to MyFirstFeedbackForm
  • Modify the first Question type to Text
  • Add the Question title: Email address
  • Tick Required Question
  • Done

Question title

  • Add a second question
  • Question title: Message
  • Question type: Paragraph text
  • Tick Required Question
  • Done
  • Add the third question
  • Question title: Version
  • Done
  • Add the last question
  • Question title: OS
  • Add more questions if you need more informations from player devices. (language, browsers, OS version, device version, etc.)

All form

Add params to the URL of your live form

  • Click on Responses > Get Pre-filled URL

Capture d’écran 2014-12-05 à 17.54.03

  • Enter in the Version input text field “Version”
  • Enter in the OS input text field “OS”
  • Click Submit
  • Copy the pre-filed URL

You should get this kind of URL: https://docs.google.com/forms/d/1o_GUk-5fJS66xM9ONCkvGN4rKvrenLe17lz0zqzQUQI/viewform?entry.1008521465&entry.890117275&entry.1551109339=Version&entry.566074336=OS

Use you own IDs:

https://docs.google.com/forms/d/[ID_OF_FORM]/viewform?entry.[ID_OF_THE ENTRY]=[ANY_VALUE]&entry.[ID_OF_THE ENTRY]=[ANY_VALUE]

You can generate an URL to this live form inside your game to get additional informations about player devices. When players open the web page all additional informations will be pre-filled.

Notifications: Receive emails when players post messages

  • Re-open your Google Form
  • Click on View responses


  • Create a New Spreadsheet

New spreadsheet

  • Click on View responses again

View responses

  • You should see a blank spreadsheet
  • Tools > Notifications Rules

Capture d’écran 2014-12-05 à 17.26.47

  • Set a notification rules and Voilà! :)

Capture d’écran 2014-12-05 à 17.26.59

You are welcome to share your ideas to improve this Feedback form. :)

In the second tutorial I will show you how to get all device informations in Flash, Unity and iOS.