Hello. I’m trying to disable audio on Android by using AppSettings.setAudioRenderer(null) and it causes java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference on this line jmonkeyengine/JmeAndroidSystem.java at master · jMonkeyEngine/jmonkeyengine · GitHub
Is this a bug or jME is not intended to be used on Android without an audio (which is will be weird )?
I would have said you can set an empty string instead, but the else statement makes it mandatory, but you still can destroy the audio or not update it anyway, if you are using a custom renderer, but why its just one frame and it will be destroyed with the rest of jme context.
To minimize the resources on android, you can try to set the JmeContext#Type enum to Headless, by doing so, jme will not render audio and audioRenderer would be null in the initialization process which will disable the audio update.
thank you so much, it helped a lot
jme is so much powerful but lacks on having project generator, gui ide for looking to terrains and models, it is not good to look for hours on some resources to find how to just go for android, i hope in next releases jme aim for having a project generator, and a tool with wiki to easily port games on different platforms, windows marketplace, google play, ios appstore, consoles even, besides linux,macos,and pc, i know we can do it already (doubt for uwp windows) but i mean a very handy smooth tool to do it with little effort!