python-for-android | Branch of python-for-android that works with rapt
kandi X-RAY | python-for-android Summary
kandi X-RAY | python-for-android Summary
Branch of python-for-android that works with rapt.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of python-for-android
python-for-android Key Features
python-for-android Examples and Code Snippets
Community Discussions
Trending Discussions on python-for-android
QUESTION
Im trying to build my android app on buildozer but i get this error. I think buildozer can't download or can't find the threading module I researched about the error but couldn't find the solution. Can anyone help me please?
I started the building with "buildozer android debug deploy run" code. I have done this before but it was more simple program.
Edit: I also got same error with "time" module.
...ANSWER
Answered 2022-Mar-24 at 18:30It is because threading is python's standart library. I just deleted threding from buildozer.spec "requirements" section and problem is solved.
QUESTION
I created an APK from Python Kivy & KivyMD, using Google colab.
after installing it in my phone (android) , it crashed.
there two file in my project main.py, main.json, I have correctly listed Kivy & KivyMD in the requirements in the Buildozer.spec file. (kivy==2.0.0,kivymd==0.104.2) and I add json to included source like this:
source.include_exts = py,png,jpg,kv,atlas,json
This is my code..
main.py: it is a simple Notes app I think that there is no error
...ANSWER
Answered 2022-Jan-31 at 09:12I have also solved this problem and this helped me. Buildozer requirements is: python3,kivy==2.0.0,kivymd==0.104.2,pillow==8.0.1
QUESTION
I'm making a kivy app for samsung and compiling it using buildozer, ubuntu on windows.
This is .spec file:
...ANSWER
Answered 2022-Jan-25 at 15:35I had same issue in past and I solve by adding every requirements in .spec
This requirements work for me:
QUESTION
I have just seen that support for AAB files have just been introduced in Python for Android (p4a). Considering that, fom August 2021, new apps are required to publish with the Android App Bundle on Google Play, this is a crucial addition for any Python dev working on Android apps.
Since I'm currently using Buildozer via Docker, I'd like to know which are the steps to make it generating an .aab instead of (or along to) the traditional .apk
For the sake of clarity, here is what I use to run Buildozer from inside a container (using Docker for Windows) to make the .apk file:
...ANSWER
Answered 2021-Nov-26 at 13:34The community has finally completed the AAB support for Buildozer. Although it is still a pending pull request, it is already possible to create the AAB, and I have figured out how to do it using Docker.
I have found two very interesting gists that helped me a lot (this one about creating an AAB with Buildozer on Ubuntu, and another one about signing an AAB on the same platform). However, I have run everything on Windows via Docker, so I think it is a good idea to share how I did it.
Clone the feat/aab-support branch of the Buildozer repository in your local machine:
QUESTION
I'm making a cryptocoin app with my friends and i used to make app with python until i got several error on buildozer and python-for-android for days. I can't build apk so i decided to switch to kotlin and curious about something. This app will run with help of a python bot which is running on a server. Can i connect a python server with kotlin client and dump json data sended from python server?
...ANSWER
Answered 2021-Nov-13 at 09:52Yes you can. You can consume APIs with Android Retrofit library. In Google official docs you find a codelab on how to use it.
QUESTION
I am trying to create a kivy app for android device. And my code is working great on the PC. But the apk file created using buildozer is not really working on the android. It crashes before opening. But a simple Hello World Example works perfect With the same spec file.. I am not at all using any external modules in the app. Only socket module (which is a python core module.)
I don't know, what is happening. So I used socket to create a functionality to try the code and in exception I have given the code to send the Exception to my IP. Also I am having a program ready to receive and print the signal. Both these things worked great on the PC. But apk still crashes. Without sending any logs to my PC.
Here is the spec file:
...ANSWER
Answered 2021-Oct-21 at 04:06Remove comment from android.permissions = INTERNET,
then it may work.
QUESTION
I have created an APK file from Python Kivy & KivyMD, using Buildozer. When I open the app after installing it, it shows the splash image and then closes. I have checked and found that their seems no issue in the main.py, as I have correctly listed Kivy & KivyMD in the requirements in the Buildozer.spec file. (kivy==2.0.0,kivymd==0.104.1)
This is my code..
main.py
...ANSWER
Answered 2021-Oct-16 at 08:18If you have some other plugins just add them like this:
QUESTION
from kivy.uix.screenmanager import Screen from plyer import call from plyer.platforms.android import activity from kivy.utils import platform import os
...ANSWER
Answered 2021-Aug-25 at 14:54plyer call method works only on android and iOS as descripted here here
QUESTION
I encountered an error while trying to compile my kivy app using buildozer. It's telling me no such file or directory. When I went to check the directory it's Reminder__armeabi-v7a/project.properties
but it seems it needs the directory as Reminder system__armeabi-v7a/project.properties
.
I don't know if it's advisable to rename the directory because I didn't create the directory. It was created automatically during the build process. Also when I tried renaming the folder to "Reminder system__armeabi-v7a/project.properties", I got the error saying "toolchain.py: error unrecognized argument system system", so I reverted the changes made, and I'm looking for another solution.
My buildozer.spec
file looks like this:
ANSWER
Answered 2021-Sep-27 at 05:57I'm not familiar with buildozer, but the path in your error message contains a space, which is suspicious (unfortunately, many tools still fail to work with spaces in the path...). It seems to come from your package.name
variable in the buildozer.spec
, which is "Reminder system".
Simply renaming directories that you didn't make yourself is generally a bad idea. I'm glad you reverted that action.
The documentation of buildozer.spec
states this:
The Package name is one word with only ASCII characters and/or numbers. It should not contain any special characters. For example, if your application is named Flat Jewels, the package name can be flatjewels.
So I guess that changing that line to:
QUESTION
I'm trying to make kivy app for android that has some simple network features. The app works fine on pc but when I try to import it to android it doesn't work anymore. At first my app crashed on startup which was apparently caused by having network stuff on my main thread so I moved all the network stuff to another thread so my app doesn't crash anymore but it doesn't work either. Here is where I make new thread for networking:
...ANSWER
Answered 2021-Aug-12 at 12:25You don't need android.permissions
in your requirements
, but you will need the line:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install python-for-android
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page