Query related to Kivy Support for Native apps

230 views
Skip to first unread message

-NK-

unread,
Nov 5, 2012, 2:50:38 AM11/5/12
to kivy-...@googlegroups.com
Hello,
 
I am developing a software that can run on multiple OS(linke android, iOS and windows).
I came across kivy that helps in creating such apps.
I am completely new to cross platform world.
I have some queries and wanted to clear those.
 
So can kivy be used to create fully native apps that can run on tablets with above mentioned OS.?
Can I write USb driver uisng Kivy to communicate with external USB device.?
 
Thanks,
 

Gabriel Pettier

unread,
Nov 5, 2012, 6:56:53 AM11/5/12
to kivy-...@googlegroups.com
Hi and welcome :)

For the first question, it depends on your definition of "native", it's
definitly running on the phone/tablet, so it's native, in comparison to
a web app, on the other hand, it's not *as* native as a custom
java/objc-c solution, the widgets are our widgets, not the os ones, so
by a more strict definition, it's not "native", also, access to some
native features, may not be as easy from kivy as from the native sdk for
each plateform (of course, we aim to make it not only as easy as on
them, but easier), so it depends on what you want to do.

For the second question, android ndk doesn't seem to expose native level
access to the usb, so one needs to use the java interface, so for the
moment, small java classes to wrap the api for python are needed (until
a more general solution is achieved), i don't know about the status on ios.

Le 05/11/2012 08:50, -NK- a �crit :
> --
>
>

skeezix

unread,
Nov 5, 2012, 9:36:10 AM11/5/12
to kivy-...@googlegroups.com
On Sun, 4 Nov 2012, -NK- wrote:

# So can kivy be used to create fully native apps that can run on tablets with above mentioned OS.?

What do you mean by native? They're python applications, not
converted to java or objective C and compiled that way; they run on the
device. They use a Kivy styled UI, not native UI widgets. (See screenshots
on the Kivy site.)

# Can I write USb driver uisng Kivy to communicate with external USB device.?

Kivy is a UI toolkit, among other utilities; it is not low level.

There is really no toolkit anywhere that is a cross platform low
level thing.. like writing kernel modules that work on multiple operating
systems :)

jeff

--
If everyone would put barbecue sauce on their food, there would be no war.

skeezix

unread,
Nov 5, 2012, 9:39:22 AM11/5/12
to kivy-...@googlegroups.com
On Mon, 5 Nov 2012, Gabriel Pettier wrote:

# For the second question, android ndk doesn't seem to expose native level
# access to the usb, so one needs to use the java interface, so for the moment,
# small java classes to wrap the api for python are needed (until a more general
# solution is achieved), i don't know about the status on ios.

Android is linux kernel, so normal linux kernel modules work; the
trick is in getting people to use them, which is of course.. hard :)
(Would you let someone install kernel modules or other drivers into your
device? not likely..)

Mathieu Virbel

unread,
Nov 5, 2012, 10:07:15 AM11/5/12
to kivy-...@googlegroups.com
I'll answer only on the USB part. What do you have in mind?
Anything low level would be not possible i guess, but if you target
something covered by the Android API, then yes.

http://developer.android.com/guide/topics/connectivity/usb/index.html

Le 05/11/2012 08:50, -NK- a �crit :
> --
>
>

-NK-

unread,
Nov 7, 2012, 6:53:44 AM11/7/12
to kivy-...@googlegroups.com
Dear Mathieu Virbel,
 
Thanks for the help.
Ya Before going to cross platform, I have developed an application on android and was successfully able to communicate with USB.
But now my problem is, I want to share the code that actually communicates with USB.
Almost it seems impossible that code at low level can be shared across platforms, so I may need to write USB communication layer for specific platforms.
 
Dear skeezix,
 
Thanks for the help
 
Dear tshirtman,
 
Thanks for the help

Tour_P

unread,
Apr 6, 2015, 9:36:17 PM4/6/15
to kivy-...@googlegroups.com
I have developed an application on android and was successfully able to communicate with USB.

What method did you use to interface your devices via usb? I am currently trying to set my android tablet as a client to a linux computer server, via a kivy developed/deployed app.

Federico Curzel

unread,
Apr 7, 2015, 7:23:37 AM4/7/15
to kivy-...@googlegroups.com

You can use the USB controller only for RS233 communications, and only with android 3.0+.

Start your research here :
https://code.google.com/p/android-serialport-api/wiki/android_to_rs232_guideline


Il giorno mar 7 apr 2015 03:36 Tour_P <tour.p...@gmail.com> ha scritto:
I have developed an application on android and was successfully able to communicate with USB.

What method did you use to interface your devices via usb? I am currently trying to set my android tablet as a client to a linux computer server, via a kivy developed/deployed app.

--
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/d/optout.
Reply all
Reply to author
Forward
0 new messages