kivy

Android app crash with error Unknown admin

Android app crash with error Unknown admin Question: I’ve written a Kivy Python android app and created an .apk file using buildozer. After installing the app, when trying to open it – it crash. In the logs I see the following: 2022-12-28 14:08:57.318 1816-2097/? E/EnterpriseDeviceManagerService: isMdmAdminPresentInternal() : failed. java.lang.IllegalArgumentException: Unknown admin: ComponentInfo{com.samsung.klmsagent/com.samsung.klmsagent.deviceAdminManager.AdminReceiver} at com.android.server.enterprise.EnterpriseDeviceManagerServiceImpl.findAdmin(EnterpriseDeviceManagerServiceImpl.java:1593) at …

Total answers: 1

FirebaseMessaging.getToken() using python

FirebaseMessaging.getToken() using python Question: I’m building a kivy app and almost got firebase cloud messaging working using the pyfcm package from pypi. What i’m stuck on is how to get the "registration token" that the firebase SDK creates on app install so that i have a registration token to send push notifications to. There seems …

Total answers: 1

binding movement and rotation of kivy scatter widgets

binding movement and rotation of kivy scatter widgets Question: Below I have a code that displays 2 scatter widgets in a kivy screen. If one widget is dragged, the other also drags and vice versa. What I want is in addition to movement, if one is rotated, the other rotates in the same way. In …

Total answers: 1

How to resize a widget so it size is fit to its text in kivy

How to resize a widget so it size is fit to its text in kivy Question: When I add a widget, namely Label, sometimes its size cannot fit it’s text height. Changing its height manually doesn’t helped because i can type a text so its height will exceed the label’s height. Here is the example …

Total answers: 1

Receive data via bluetooth using python on android phone

Receive data via bluetooth using python on android phone Question: I have an ESP32 board which sends data via bluetooth. I can receive data on PC using this python code: from bluetooth import * import sys def input_and_send(): while True: data = input() if len(data) == 0: break sock.send(data) sock.send("n") def rx_and_echo(): sock.send("nsend anythingn") while …

Total answers: 1

Python: AttributeError: module 'core' has no attribute 'children'

Python: AttributeError: module 'core' has no attribute 'children' Question: Hello I’m working on mobile application with kivy and python. Everything was fine until I wanted to use sqlite3. Here is my directory structure: application ├───main.py ├───core │ └───__pycache__ | ├───calendar_screen.py | ├───children.py | ├───menu.py | ├───screen_manager.py | ├───settings.py | └───vaccination.py ├───database | ├───vaccination_calendar.db | ├───vaccination_calendar.py …

Total answers: 2

OSError: [WinError 123] Syntax error in file name, folder name, or volume label

OSError: [WinError 123] Syntax error in file name, folder name, or volume label Question: I am a beginner Python user. I ran into a problem when installing the "Kivy" package, even any package, I get an error "OSError: [WinError 123] Syntax error in file name, folder name, or volume label". Here my error: ERROR: Exception: …

Total answers: 1

How do I make an image resize from a fixed point

How do I make an image resize from a fixed point Question: so I’m making an app using kivy and python. I want the user to be able to scroll the mouse wheel and the image to resize from that fixed point. what I mean is that the position of the particular pixel on which …

Total answers: 2

Kivy FloatLayout issue: Label not centered per default

Kivy FloatLayout issue: Label not centered per default Question: I am currently facing a weird situation as my code used to work but does not work in a different context. I basically have a BoxLayout (MainWindow) which contains a first item (BoxLayout), with a canva drawing an Ellipse. The Ellipse is perfectly centered in the …

Total answers: 1

Stopwatch Reset with sustained button press kivy

Stopwatch Reset with sustained button press kivy Question: I am writing a program which will have a stopwatch screen in it. The stopwatch works as desired, and I am now trying to reduce the number of buttons on the screen for touch optimisation. To do this, I am attempting to reduce the entire stopwatch to …

Total answers: 1