I tried to generate a QR Code like indicated in this video (https://www.youtube.com/watch?v=QTn7NN-DdOc), but when i click in the Button, a message appears saying:
"Error 908: The permission WRITE_EXTERNAL_STORAGE has been denied. Please enable it in the Settings app".
It's the code of Screen2, i don't think the code of Screen1 will help you (by clicking in a button in Screen1, you toggle to Screen2), but if you want it, i will give it to you.
Where does the extension try to save the file to? It could be /storage/emulated/0 ?
What android version is your device ? If < 9 then the device default save path will not be as above but in your application specific directory, you will need to add this to the path.
You will need to put something in your text block
If running a compiled app, you may need to give the permission WRITE_EXTERNAL_STORAGE
Still doesn't work unfortunately !!! Same error message:
"Error 908: The permission WRITE_EXTERNAL_STORAGE has been denied. Please enable it in the Settings app."
Did you try Tim's example using the Companion or after building and installing the apk? I experienced a similar message using different extension which appeared using Companion but disappeared after installing the app.