Hi Johan, i like your code with inline Java.
I've added some modifications to make it more crash-safe (in JHSTORCH_JAVA only). Tested on S4 mini too with api21 (Cyanogenmod 12 android 5.02) , LG G3mini api 19, S. advance api16 and S.ace2 api 10 all ok!
Note that you can't access the camera while the torch is on.
Best regards