Kivy and NFC

149 views
Skip to first unread message

PDf

unread,
May 25, 2016, 5:34:11 AM5/25/16
to Kivy users support
Hello,
Does Kivy allow to drive SmartPhone NFC (Near Field Communication) interface ?
Best regards.

Alexander Taylor

unread,
May 25, 2016, 6:04:50 AM5/25/16
to Kivy users support
It should be possible to manage this via the android/ios apis using pyjnius/pyobjus.

PDf

unread,
May 25, 2016, 10:22:41 AM5/25/16
to Kivy users support
Ok for iPhone.

But On Android SmartPhone (like SamSung S4) ?

Best regards.

Alexander Taylor

unread,
May 25, 2016, 10:51:59 AM5/25/16
to kivy-...@googlegroups.com
As I said, you should be able to manage this via the android apis using
pyjnius.
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Kivy users support" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/kivy-users/IsCl4Gjc480/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> kivy-users+...@googlegroups.com
> <mailto:kivy-users+...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.


signature.asc

PDf

unread,
May 26, 2016, 9:52:52 AM5/26/16
to Kivy users support
t's ok.

Now I try to drive NFC interface on Android in kivy and Python.
I succeed to import "jnius" : "from jnius import autoclass"
I succeed to access to nfcAdapter : "g_nfc_NfcAdapter = autoclass("android.nfc.NfcAdapter")"
I succeed to access SmartPhone NFC adapter : "g_nfcAdapter = g_nfc_NfcAdapter.getDefaultAdapter()"
And I know my g_nfcAdapter is correct because "g_nfcAdapter.isEnabled()" return the correct value, depending on my action on "android NFC setting status"

And now, I want to enable adapter, and I don't know how to code nfcAdapter.enableReaderMode() in python with the tag-read-callback.

Can Help me ?

Best regards.
Reply all
Reply to author
Forward
0 new messages