Installing pyJNIus on Ubuntu 14.10

515 views
Skip to first unread message

Brian MacDiarmuide

unread,
Jan 25, 2015, 11:19:05 AM1/25/15
to pyjni...@googlegroups.com
Hi

I have been using the Kivy Framework for the last while to make some simple apps and games for Android.
I now want to access some more functionality on Android and pyJNIus looks like it should
be a relatively painless way for me to do this. I don't have much experience with Java, apart
from making some very simple Android apps with it, but I'm hoping that won't be too much of a
problem. However, I am pretty unsure as to the correct way to install pyJNIus. Do I simply use
pip or apt-get? I haven't found any directions on this that I was fully comfortable with, and I don't want to go
installing things willy nilly.

Can someone please give me some simple steps to getting set up?
Baring in mind that I will be using the Kivy framework for my GUI. I already have the latest version
of Kivy and Cython. Thanks for reading.

Brian

Gabriel Pettier

unread,
Jan 25, 2015, 11:32:33 AM1/25/15
to pyjni...@googlegroups.com
Hello

You actually don't need to install anything, if you only want pyjnius to
use it on android, it's automatically packaged in your kivy apps
already. You could install it on desktop, to load java classes that are
accessible here, but of course, the android api is only available… on
android, so it won't help you experiment with it here.

Of course, one thing that is lost with that, is the hability to
experiment with the android api in a python shell, since you only have
access to it in python on android, if you want that, though, there is a
project that, when packaged on android, opens a shell waiting for a
connection, allowing you to use the python shell in an android app with
pyjnius.

https://github.com/kivy/kivy-remote-shell
> --
> You received this message because you are subscribed to the Google Groups "PyJNIus development ML" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pyjnius-dev...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

signature.asc

Brian MacDiarmuide

unread,
Jan 25, 2015, 11:38:59 AM1/25/15
to pyjni...@googlegroups.com
Thanks for your reply. The kivy-remote-shell sounds interesting. Does this mean I could for instance, turn the camera light on and off in realtime, from the shell?

You received this message because you are subscribed to a topic in the Google Groups "PyJNIus development ML" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pyjnius-dev/ons9oHhA2aQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pyjnius-dev...@googlegroups.com.

Gabriel Pettier

unread,
Jan 25, 2015, 11:55:16 AM1/25/15
to pyjni...@googlegroups.com
Yes. :)

I didn't test it in some time, but it should work.
signature.asc
Reply all
Reply to author
Forward
0 new messages