on android, how to import modules such as pybluez?

447 views
Skip to first unread message

Michael

unread,
Apr 29, 2013, 12:58:17 PM4/29/13
to kivy-...@googlegroups.com
hello, i am new to kivy. i know kivy can do pretty UI, i like to use it to do some apps with networking / communication functions.
is it possible to import pybluez, pyserial, zope etc. ?

Gabriel Pettier

unread,
Apr 29, 2013, 3:56:14 PM4/29/13
to kivy-...@googlegroups.com
Pure python modules can be put into your app dir, for others, the use of
recipes to compile them is necessary, look into the recipe dir in the
python-for-android repos, and to have them in your distribution, you
need to pass their name to the "-m" option to distribute.sh.

hope this helps.
> --
> You received this message because you are subscribed to the Google Groups "Kivy users support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Niko Skrypnik

unread,
Apr 30, 2013, 5:32:45 AM4/30/13
to kivy-...@googlegroups.com
https://groups.google.com/forum/?fromgroups=#!topic/kivy-users/6s_gSEgBek4 - this may be helpful.

But anyway it may be some problems with pybluez, cause as I know it's just bindings for Bluez toolkit which is written on pure C. So you need port first Bluez and add it into your package distribution. I expect that it may be very nontrivial, but anyway I think it will be cool if you do it. If not - check for examples of using Bluetooth via android API, I saw it somewhere here.


понедельник, 29 апреля 2013 г., 19:58:17 UTC+3 пользователь Michael написал:
Reply all
Reply to author
Forward
0 new messages