Questions tagged [pyjnius]

Pyjnius is a Python library for accessing Java classes.

Pyjnius is a library for accessing classes.

References:

170 questions
1
vote
0 answers

Error "Attempt to protect stack guard pages failed"

I am trying to use the PyJnius library to interact with JVM in Python. However, when I import jnius, I get the following warning: >>> import jnius [0.002s][warning][os,thread] Attempt to protect stack guard pages failed…
Jack Lee
  • 11
  • 2
1
vote
0 answers

How to detect / disable screenshot with python kivy on android?

I am currently developing an application in python with kivy. It works like a chat app and I want to integrate the same feature as for example snapchat does: detecting screenshots. I want my code to either detect if someone does a screenshot or…
1
vote
0 answers

Pyjnius autoclass method can't find any 'android.X' classes

I'm just trying to do a simple app to lock android screen, but using Python. For that I try Pyjnius. When I try to get any class within 'android' package, like this: DevicePolicyManager = autoclass('android.admin.DevicePolicyManager') it just…
1
vote
2 answers

How to get current activity correctly?

I need to access current activity of my app. I checked this official code If i use this code below as documentation says: PythonActivity = autoclass('org.renpy.android.PythonActivity') i can't access activity and it returns error. So after…
320V
  • 455
  • 3
  • 10
1
vote
0 answers

Android WebView onPermissionRequest is not calling

I m new to Pyjnius and android. I m trying to make a video calling app But my onPermissionRequest is not Called when my WebView PopUps... In My logcat onPermissionRequest should Print "onPermissionRequest: " but its not.. My Code: Main.py- import…
Priyanshu Kumar
  • 172
  • 1
  • 2
  • 13
1
vote
1 answer

Pyjnius looking for libjvm.so in wrong folder - Ubuntu 16.04

I'm somewhat new to Ubuntu (16.04, armhf) and am trying to use pytimeextractor which requires both cython and pyjnius to enable the Java/Python interaction, but am running into the following error with pyjnius: SystemError: Error calling…
1
vote
1 answer

NameError at Bluetooth Kivy App on Android, based on Pyjnius

I tried to implement this Python/ Pyjnus Bluetooth code to my own code where I am also trying to build a Bluetooth connection to a HC-05 Module with an Android App built with the Kivy and KivyMD Framework, but I got different errors while compiling…
1
vote
0 answers

How to write Google Sing-in addOnCompleteListner in pyjnius&kivy?

I am adding Google Signin in kivy app. I am using pyjnius, But i am stuck here private void firebaseAuthWithGoogle(String idToken) { // after this line mAuth.signInWithCredential(credential) .addOnCompleteListener(this, new…
Kouki
  • 37
  • 7
1
vote
0 answers

How to implement In-apps purchase in a Kivy App (android)

I made an Application I would like to implement in-app purchases into, I researched on this extensively, but to no avail. The process I'm seeing on how to implement in-app purchases, requires android studio, and I don't know how to run a kivy file…
Edwin
  • 565
  • 11
  • 26
1
vote
1 answer

AudioRecorder in android using python

i have a problem: This is the run function after I click on the kivy button And I know that time.sleep is used badly here, but how can I possibly replace it? from jnius import autoclass def run(self): self.r = MyRecorder() …
joojn
  • 59
  • 1
  • 7
1
vote
1 answer

jnius.jnius.JavaException: Class not found b'packagedomain/packagename/ServiceName'

I made a test application on kivy to call a service. I have these files: main.py from kivy.app import App from kivy.uix.button import Button from jnius import autoclass class TestButton(Button): # When the button is pressed, this function is…
1
vote
1 answer

how do I compile java files and import them with pyjnius with kivy

Before running buildozer I put a java file in ga/chatme/web/WebHandler.java. Then, I set the android.add_src to ga/chatme/web but, I cant seem to import it with autoclass('ga.chatme.web.WebHandler')
Michael
  • 43
  • 3
1
vote
1 answer

Kivy: [WindowSDL] No running App found, exit

iam doing image chooser in kivy from gallery by using jnius with intents Then i click button it opening gallery and the app is closing in logcat i got 05-07 15:27:19.507 30865 30865 I python : [INFO ] [WindowSDL ] No running App found,…
koushik
  • 364
  • 4
  • 13
1
vote
0 answers

Get incoming number in kivy with pyjnius

I`m trying get to get incoming number in kivy with pyjnius. My service/main.py from android.broadcast import BroadcastReceiver from jnius import autoclass, cast import time class CallReceiver: def build(self): context =…
1
vote
1 answer

jnius.jnius.JavaException: Class not found

I made a test application on kivy to call a service. I have these files: main.py from kivy.app import App from kivy.uix.button import Button from jnius import autoclass class TestButton(Button): # When the button is pressed, this function is…
Karl
  • 126
  • 4