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.

2 thoughts on “Unity – Get current android volume with JNI without native plugin

Leave a Comment