I'm developing an app with Python that reads images with Pillow. It works fine on Windows but it crashes when I am running it on Android tablet (the app is built with buildozer). It crashes when this line is called:
image = PIL.Image.open(filename)
I tried to log the error but I got nothing.
NB: the filename is correct and Pillow is in the requirements in the buildozer.spec file.
Someone could help me to understand ?
Thanks!
Related
Here is the logcat. Need help to make the app work.
logfile
When I run demo app for first time in Flutter VS Code editor. It gives me an error.I am using LG G5 with Oreo 8.0.0 as device for testing. I am attaching screenshot of error and the build.gradle file. Please help.
Here are image links which I have also posted on Hashnode
https://cdn.hashnode.com/res/hashnode/image/upload/v1589211939604/MGPN2sCOe.png?auto=format&q=60
https://cdn.hashnode.com/res/hashnode/image/upload/v1589211949952/SbEQUkqXr.png?auto=format&q=60
https://cdn.hashnode.com/res/hashnode/image/upload/v1589211951887/cWCdiB6PS.png?auto=format&q=60
I've been trying to solve this problem for about 5 days.
I've created an app for my work place in Android Studio, and it works fine when I run it in debug mode with the ADB. But when I generate the signed apk and try to install it on my device (Samsung Galaxy S6, Marshmallow 6.0.1) it always shows "Unfortunatelly, Package installer has stopped".
I have already changed the Build Variant to "release", and checked the password for the key store several times, also uninstalled the previous app and looked for remaining data like in other questions tell you to fix this problem. I think the problem is not there.
This code is in my build.grade :
Code Pic
I've tried the same with other apps I have created along with the Udacity Beginners Course (I'm kind of new in Android developing) and they work just fine when I create and install the signed .apk.
Also, I noticed that inside my phone there are folders of every app installed, inside Android -> data; here I can find the folders for the apps form the Beginners Course, but even if I run the one I'm developing with the ADB, the folder doesn't appear. Is this normal?
Hope someone can help me!
EDIT -
I think I found the problem with your help, but I still don't know how to fix it. This is what appears in the Android Monitor.
Android Monitor Picture
Thanks again for your help!
I am rebuilding an Android app for which I've the source code from the OEM. Normally, the app can be using the make command in command line and that works. The app's UI, manifest etc. is done in Eclipse. But Eclipse can't compile the app, and gives error on the line shown below and does't recognize the item USER_CURRENT.
sendBroadcastAsUser(exampleIntent, new UserHandle(UserHandle.USER_CURRENT));
Does anyone know how can I build and run the app from Eclipse?
Btw, I build my own system image for the platform using Android 4.4.2.
Thanks.
I used
android.os.Process.myUserHandle()
to get UserHandle instance.
general question:
i have an app i'm developing that uses rhino to execute java script code.
when i run it on my emulator it works well but when i install it on my device it crushes and gives a Use *#9900# to take log message.
i am not sure what that error really means.
i have gone over the code and cleared all log and system out commands and added debug=false on the android manifest.
do i need to install on my device any other software,such as an interpreter so it could run java script?