I am having a hard time trying to use Pyjnius to access a Android Java class "ContactsContract.Intents.Insert".
I have been following this example provided here:
Pyjnius: http://kivy.org/planet/2012/08/pyjnius-accessing-java-classes-from-python/
Java class to access: MediaRecorder
But really what I want to access using Pyjnius is the "ContactsContract.Intents.Insert" in Android and get working code to add a new contact to my Android phone.
Android class: https://developer.android.com/reference/android/provider/ContactsContract.Intents.Insert.html
This is what I have so far but I am confused on the arraylist:
from jnius import autoclass
Data = autoclass("ArrayList")
data = Data()
MyContacts = autoclass("ContactsContract.Intents.Insert")
mycontacts = MyContacts()
data.put(Data.MIMETYPE, Organization.CONTENT_ITEM_TYPE)
data.put(Organization.COMPANY, "Android")
data.add(mycontacts)