I am newy in developing mobile apps, by coding with python and kivy. I am trying to make a simple app to record audio for the microphone and to save it in the sd memory card. I am trying to deploy it in android. I am using:
The process whit buidozer is ok, i get my .apk file, but when i try to debug it I get some errors related with (i think) the permission to write in the sd card. I googled it and I get lots of info related to the handle of p4a directly, but not for the use of buildozer. I have add in my buildozer.spec:
# (list) Permissions
android.permissions = INTERNET, RECORD_AUDIO, READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE
Firs time I try to run my app ( command: 'buildozer android debug deploy run logcat') I get my app but then it crush and i get this error:
06-26 09:16:00.509 10388 10426 I python : File "jnius/jnius_export_class.pxi", line 769, in jnius.jnius.JavaMethod.__call__
06-26 09:16:00.511 10388 10426 I python : File "jnius/jnius_export_class.pxi", line 863, in jnius.jnius.JavaMethod.call_method
06-26 09:16:00.512 10388 10426 I python : File "jnius/jnius_utils.pxi", line 91, in jnius.jnius.check_exception
06-26 09:16:00.513 10388 10426 I python : jnius.jnius.JavaException: JVM exception occurred: setAudioSource failed.
06-26 09:16:00.513 10388 10426 I python : Python for android ended.
I've seen that android does not ask my for permission (never). I gave it manually (in the settings of my phone) and I try again, but I still get an error (different).
06-26 08:44:38.068 9719 9767 I python : File "jnius/jnius_export_class.pxi", line 1047, in jnius.jnius.JavaMultipleMethod.__call__
06-26 08:44:38.069 9719 9767 I python : File "jnius/jnius_export_class.pxi", line 769, in jnius.jnius.JavaMethod.__call__
06-26 08:44:38.070 9719 9767 I python : File "jnius/jnius_export_class.pxi", line 863, in jnius.jnius.JavaMethod.call_method
06-26 08:44:38.071 9719 9767 I python : File "jnius/jnius_utils.pxi", line 91, in jnius.jnius.check_exception
06-26 08:44:38.072 9719 9767 I python : jnius.jnius.JavaException: JVM exception occurred: setDataSourceFD failed.: status=0x80000000
06-26 08:44:38.072 9719 9767 I python : Python for android ended.
Anyone who can help me about this?
Thanks!!!!!
User contributions licensed under CC BY-SA 3.0