Hello there! I'm currently making a game for android in Unity and I am also going to use QR codes for the levels. I was very surprised when I installed Mekorama that it didn't ask for a permission to use the camera nor to take pictures. And it didn't ask anything when I used the feature itself. Does anyone know how Martin Magni managed to open the camera and take a picture without requesting this permission? Sorry for the very specific question and thanks for the help if any
You're right and it should be required as specified here. Fact is that @Martin Magni developped his game in C language, not in Java. Not really often nowadays to find someone working on low level technilogies like that but that's also the reason why the file application size is really tiny, so a real amazing work. Maybe is there something related to that? Another reason could be that he uses Barcode components by Cognex Corporation. So technically speaking this is not the app itself which uses the camera. Indeed I am surprised that the application doesn't have to request authorisations and is allowed to use it even if it is through a component. @Martin Magni should answer on that
Thanks a lot Gepeto for your answer! I saw after I posted also that in the android spec it says "Note: If you are using the camera by invoking an existing camera app, your application does not need to request this permission.". So I guess that is what Martin is doing. I'm going to try to see if I can start the default camera from the code in Unity. It seems feasible!
I figured it out! It was indeed just a matter of calling the default camera, but it's a bit more complicated in Unity than it is in a native android application. I have put the solution code on github "Unity-for-Android-Read-Write-QR-Code-from-Camera"!
Hello hello! I have finished my game for android so don't hesitate to check it out. It has a puzzle editor and QR codes like in Mekorama (from where I got the inspiration for this feature! ). Google Play Link: https://play.google.com/store/apps/details?id=com.giyomu.frogtactics The facebook page where I put new levels once in a while (and you can too!): https://www.facebook.com/frogtactics/ Trailer et gifs in the spoiler Spoiler Trailer: (the quality is better in the game than in the gifs! ^^)