Pyjnius allows you to create a python wrapper for java classes like:
Hardware = autoclass('org.myapp.Hardware')
Is there a way to import an existing *.jar file like that? What does the syntax look like?
I want to create share button that will use android ACTION_SEND intent for sharing image. It's my code:
from kivy.setupconfig import USE_SDL2
def share(path):
if platform == 'android':
from jnius import cast
from jnius import…
I'm running some Java code through Python's pyjnius package, version 1.2.0. There are several Python processes that each call the same Java class with different inputs, so each one initializes its own JVM. The problem I'm having is a memory issue,…
I'm trying to make pyjnius work with a jar file I built from java application, but I keep getting the "Class not found" error:
>>> import os
>>> os.environ['CLASSPATH'] = "~/workspace/myapp-Tools/Admin/Console/couchdb/myapp-web.jar"
>>> from jnius…
I have tried a few ways to send an email using Python in the Kivy app on Android. The closest I've come is using Plyer's email function (https://plyer.readthedocs.org/en/latest/#plyer.facades.Email), however it doesn't appear to support…
I am trying to get this example for importing importing TensorFlow in Java to run: https://github.com/deeplearning4j/tf-import
I have managed to get the Java import in Mnist.java to work after some modifications.
However, I am unable to get …
I'm working on importing braintrees drop-in UI payment method into my python kivy app with the following code.
from jnius import autoclass
from jnius import cast
from android import activity
Intent =…
How do you get pyinstaller to bundle .jar files as archives for a python project that utilizes them?
For instance, to make an exe with (I am using pyjnius for handling the sikuli-standalone jar):
# test.py
import os
import sys
# set the classpath…
When after I give the command:
buildozer android debug deploy run
I am getting the following error. Its showing syntax error ?
# Install distribute
# Run 'curl http://python-distribute.org/distribute_setup.py | venv/bin/python'
# Cwd…
I have some existing code on Python and want to port it to android using Kivy and Buildozer.
However I have a dependency on native android class 'Visualizer'.
My application starts up correctly, but when I click on 'Run' button in my application…
I am trying to execute PyInstaller main.py on my windows 10 machine, I am getting the following warning:
3536 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of c:\users\dlee\appdata\local\programs\python\python36\python.exe
3701…
I found that kivy is very nice framework to build cross platform application and I am very interested in kivy just to do android application as I think is easy and comfortable in kivy.
After trying few examples, I am interested to know how should…
I am looking for a method to store settings persistently on android device, from Kivy framework.
I found Kivy documentation, overall informative, vague in this particular area. It mentions three methods (sorry, dont have enough reputation to…
webbrowser.open() works on Windows 7; Python 2.7 opens my default web browser (Chrome) on my Windows machine no problem.
My simple code to analyze CSV data works perfectly on both Windows and Android (4.1). webbrowser.open() or .get() does not work…
I am developing cross-platforms using Kivy and I want to use Pyjnius to push and get bytes to the speaker or microphone for android(for windows and Linux Pyaudio works fine),I have tried Plyer and audiostream, but both them are not well…