Questions tagged [pyjnius]

Pyjnius is a Python library for accessing Java classes.

Pyjnius is a library for accessing classes.

References:

170 questions
0
votes
2 answers

Kivy pyjnius with Buildozer - Adding jnius to the app causes it to crash after starting it

after adding these lines of code to my kivy app, when i start it on my android 4.4.4 the app immediately crashes from jnius import autoclass try: Environment = autoclass('android.os.Environment') sdpath =…
Nick
  • 545
  • 12
  • 31
0
votes
2 answers

How to implement nested class and abstract class with pyjnius?(kivy)

I want to implement nested class with pyjnius in python.It is required for developing a feature for plyer.I skimmed the docs but could not find it.
phunsukwangdu
  • 412
  • 5
  • 13
0
votes
1 answer

Pyjnius, Facebook/Google SDK for Sign in Button with Kivy

So I have been wondering. Can this be implemented with kivy? I have seen read this post in kivy planet about it, but noticed that the login button was a problem. The article is from 2013, so I would like to know what is the current situation…
Guga Figueiredo
  • 292
  • 4
  • 18
0
votes
1 answer

launchservicesd: secTaskLoadEntitlements failed error=22 while loading java

I am trying to run a python program ( sikuli ) that imports a jar using jnius. This is the gist of the code in sikuli package that loads the jar file in python import os jarpath = "/Users/*/sikuli-api-1.0.3-standalone.jar" os.environ['CLASSPATH'] =…
user1429322
  • 1,266
  • 2
  • 24
  • 38
0
votes
2 answers

Kivy Gallary programm doesn't work when compiled as apk

I wanted to make an kivy app, with a button, that opens the android gallary, when the button is clicked. So I wrote to code, that you can see down there, on qpython, and it worked. But when I wanted to ran it on my PC, I got the error message: …
Gilgamesch von Uruk
  • 351
  • 2
  • 5
  • 17
0
votes
2 answers

Import pyjnius from kivy

I want to ask if it's possible to import only jnius from Kivy. I using Python for Android "qpython" distribution with Kivy compiled in it. Kivy also have pyjnius included. Now I try to use jnius without calling a Kivy app to call Java modules? Any…
fteinz
  • 1,085
  • 5
  • 15
  • 30
0
votes
1 answer

pyjnius not working in virtual environment

I am working with pyjnius in django. I am not able to import it as a module so i am using it like this os.system("python home/pyjnius/jnius/run_me.py " + path) that works normally but in virtual environment it gives error Traceback (most recent…
0
votes
1 answer

Kivy, AdBuddiz raises the error: __javaclass__ definition missing

I am trying to build my app using kivy, and it is looking great so far. Everything compiles and runs just fine with buildozer. I am trying to incorporate ads into my app with AdBuddiz according to this…
Nick Tran
  • 27
  • 5
0
votes
1 answer

Using partial wakelock and service does not make app run when phone is locked

I am using a partial wake lock and a service in my kivy app so that it can run when I lock the screen. My service makes the phone vibrate every other second when a switch is turned on, while the app attempts to acquire a partial wakelock only when…
0
votes
1 answer

Kivy start android intent with pre-filled contact fields

I want to start an android add contacts activity.But i also want to start the contact's intents insert action. What is wrong with my code here. Simply i want to start a add contacts activity with pre filled data like phone and number already…
Edwinner
  • 2,458
  • 1
  • 22
  • 33
0
votes
1 answer

Cannot create AdRequest instance by pyjnius

I'm trying to install AdMob on Kivy. I import AdRequest successfully but cannot create its instance. AdRequest = autoclass("com.google.android.gms.ads.AdRequest") print "AdRequest: ", AdRequest print dir(AdRequest) In the logcat, I can see the…
Jasoniem9246
  • 93
  • 2
  • 10
0
votes
1 answer

Installing Python sikuli package (problems installing pyjnius) Windows 7 Python 2.6

I am working on a Windows7 PC with Python 2.6. I want to import sikuli into Python. I have a problem installing pyjnius. Here are some of the errors I have been encountering: C:\Users\x\Documents\Public\pyjnius\pyjnius-master>easy_install…
user442920
  • 857
  • 4
  • 21
  • 49
0
votes
1 answer

Is there a way to use pyjnius in sl4a

Hey guys is there any way of using pyjnius with sl4a? By that I mean importing pyjnius and using it in a python sl4a script... The goal is to be able to access the Google Play Services’ Activity Recognition client from an sl4a script. Any other way…
user1368891
  • 131
  • 2
  • 9
0
votes
1 answer

how to give permission for Kivy android scripts?

I have installed kivy in my phone. What Ia am trying to do is write a script from system and put it in /sdcard/kivy/myapp folder. How do I give permission to my script? eg Bluetooth need special permission to access it. Is there any way by which i…
user
  • 87
  • 8
0
votes
1 answer

Kivy/pyjnius: get android.app.Application object of my app

Testflight api needs pointer to android.app.Application object for API methods like this: TestFlight.takeOff(this, "your-token-***-***-***") how can I get it for my kivy App object?
Thorin Schiffer
  • 2,818
  • 4
  • 25
  • 34
1 2 3
11
12