Questions tagged [pyjnius]

Pyjnius is a Python library for accessing Java classes.

Pyjnius is a library for accessing classes.

References:

170 questions
1
vote
1 answer

Java classes for pyjnius

I have created a Java class to use in python with pyjnius but I can't use it as pyjnius can't find it, the pyjnius documentation says that I have to move the Java classes to src/org And I have done it but have not been successful, could someone tell…
yaxter
  • 85
  • 1
  • 8
1
vote
1 answer

Dynamic Wifi Scanner with kivy

I have made a small app for Android which is responsible for scanning Wi-Fi networks, the app works well, the problem is that I don't know how to add widgets every time there is a new network. What I want is that every time there is a new Wi-Fi…
yaxter
  • 85
  • 1
  • 8
1
vote
1 answer

How to get absolute path from popup (Intent.ACTION_OPEN_DOCUMENT_TREE) kivy , andoid -11

I am a beginner programmer, writing my first application in kivy. And ran into limited storage issue for android - 11 (API 30). How to get the absolute path from the pop-up window when the user selects the folder to save the application data in…
djus
  • 21
  • 3
1
vote
0 answers

How to keep the user logged in in kivy app

I have made an app in kivy, once the user login into the account, I want to save his details in his Android itself. So that whenever he opens my app again , it will automatically check for the details from his Android itself. This will keep them…
Vishal
  • 71
  • 6
1
vote
0 answers

TypeError: Can't mix strings and bytes in path components in python

Using cached jnius-1.1.0.tar.gz (28 kB) ERROR: Command errored out with exit status 1: command: 'c:\users\user\appdata\local\programs\python\python37-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] =…
Vinz
  • 255
  • 1
  • 9
1
vote
0 answers

Banner Ad is not getting displayed in App after Publishing in Playstore

I have developed android app using Kivy and kivmob, I recently added a banner ad and rolled out into production. But after updating the app in Google Play Store, My app doesn't show any ads. I have tested in two to three test devices Please find the…
Raja
  • 71
  • 3
  • 11
1
vote
1 answer

Pyjnius Class not found Error when importing my own java file

I am making a Bluetooth Android App using Kivy. How can I use pyjnius to import my own java class to my python code? But not the build in java class in Android such as 'android.bluetooth.BluetoothAdapter'. Here is my the error I got. I used…
Kelvin
  • 11
  • 1
1
vote
1 answer

How to get current location data on android using plyer (or pyjnius) for Kivy app?

I am trying to get accurate latitude and Longitude on my Android Kivy app. Modules like geocoder use IP address, but in my testing that has been super far off when using mobile data. I need some code that works in a kivy apk. It seems like plyer is…
Thrasherop
  • 71
  • 2
  • 11
1
vote
2 answers

Failed to build apk for service app using Kivy Complete VM

I'm trying to build an APK using virtual machine and Kivy Complete VM. The code is simple, this is the service sample app by Andre Miras: https://github.com/AndreMiras/p4a-service-sticky. Kivy VM and buildozer.spec were used as-is without any…
volion80
  • 113
  • 1
  • 6
1
vote
1 answer

Pyjnius custom java method returning 'JavaException: Unable to find a None Method' works after Public Static

So I needed to read a ByteArray from the InputStream in Android. Therefore I used this custom method in java in a kivy App using pyjnius for the same reason as stated in the link. I placed the ReadInput.java file in this…
Hmerman6006
  • 1,622
  • 1
  • 20
  • 45
1
vote
0 answers

Conda does not set up properly path for JDK for pyjnius

I have installed pyjnius with conda. However, when I try to import pyjnius it fails > from jnius import autoclass File "C:\Users\OEM\Miniconda3\envs\example-env\lib\site-packages\jnius\__init__.py", line 12, in from .jnius import * …
dzieciou
  • 4,049
  • 8
  • 41
  • 85
1
vote
2 answers

Change Device Wallpaper in Python/Kivy

I have a simple app and,among other things, I need this app to be able to change the wallpaper of a device on Android. Now, I've looked around on the net and pyjnius seems like the obvious choice. The problem now is I don't know the first thing…
silverhash
  • 880
  • 8
  • 21
1
vote
1 answer

Syntax error in SiddhiQL, extraneous input (PySiddhi4)

I'm trying to use PySiddhi4 to run CEP in a Python-based environment. To get acquainted with the package, I tried to run the sample code provided by the Siddhi developers. Here's the link: https://wso2.github.io/PySiddhi/Run-PySiddhi4/ However, when…
vanrzk
  • 11
  • 3
1
vote
1 answer

Pyjnius Autoclass with multiple constructor options

I'm trying to use Stripe payments Android SDK in a Kivy app with pyjnius. When trying to initialize Card.java from https://github.com/stripe/stripe-android/blob/v2.1.0/stripe/src/main/java/com/stripe/android/model/Card.java I get an error…
GoBig06
  • 255
  • 2
  • 13
1
vote
1 answer

Kivy: Stop a android service from main App

If the following is how you start an android service with Kivy, how do you stop a service from the front end? I already know how to make the service stop itself in the service, i want to stop it from the frontend: from android import…
Jeff
  • 551
  • 1
  • 5
  • 19