Category : python-3.x

I am trying to import Chromium for Android as an Android Studio project on an Ubuntu 16.04(LTS). I have completed the below steps to build chromium project for Android https://chromium.googlesource.com/chromium/src/+/master/docs/android_build_instructions.md#Installing-and-Running-Chromium-on-a-device/ Problem : To create the Gradle file for importing the project into Android Studio I have referred to https://chromium.googlesource.com/chromium/src/+/master/docs/android_studio.md build/android/gradle/generate_gradle.py –output-directory out/Default On running the ..

Read more

When I install a python programe in android mobile via android studio.Following error appears and my app crashes. com.chaquo.python.PyException: ConnectionError: HTTPSConnectionPool(host=’www.flipkart.com’, port=443): Max retries exceeded with url: /cello-novelty-big-plastic-free-standing-chest- drawers/p/itm30f968c84bc68? pid=CSDEFFMN2Y7ZDUGQ&lid=LSTCSDEFFMN2Y7ZDUGQ6GF2RX&marketplace=FLIPKART&pageUID=1603005810862 (Caused by NewConnectionError(‘<urllib3.connection.HTTPSConnection object at 0x898b8a78>: Failed to establish a new connection: [Errno 7] No address associated with hostname’)) This app is to take the ..

Read more

I try to create an APK with buildozer. The problem is: when I launch this command to build the APk, I received this error: python3 -m pythonforandroid.toolchain apk –debug –bootstrap=sdl2 –dist_name Population-package –name Population –version 0.1 –package ewan grignoux levert.population-package –minsdk 21 –ndk-api 21 –private /home/ewangl/Documents/NSI/Projets/Population/.buildozer/android/app –android-entrypoint org.kivy.android.PythonActivity –android-apptheme @android:style/Theme.NoTitleBar –orientation portrait –window –copy-libs –arch ..

Read more

Why does this work perfectly but I had to add screen widgets from python explicitly from kivy.uix.screenmanager import Screen, ScreenManager from kivy.lang import Builder from kivy.app import App class start(Screen): pass class filexp(Screen): pass class shuff(ScreenManager): pass sty=”’ #:import FadeTransition kivy.uix.screenmanager.FadeTransition <shuff>: transition:FadeTransition() start: filexp: <start>: name:’main’ Button: text:’what’ on_release:app.root.current=’exp’ <filexp>: name:’exp’ GridLayout: cols:1 Button: ..

Read more

I wrote a python3 app called chinese_speaker with kivy and google_speech. after compiling with buildozer, I copied it to my smartphone. Every time I tried to start, it always closed immediately. so I activated adb debugging and in the logfiles I found this lines: 09-22 13:29:50.971 13746 13789 I python : File "/home/[user_name]/Documents/Python/Buildozer/chinese_speaker/.buildozer/android/app/main.py", line 10, ..

Read more