Page 1 of 1

Accessing Contacts (AddressBook) & Calendar

Posted: Sat Sep 24, 2011 1:11 pm
by christerp1
Need to get access to Android Contacts and Calendar. Anyone done it from LiveCode?

Re: Accessing Contacts (AddressBook) & Calendar

Posted: Sat Sep 24, 2011 9:09 pm
by BarrySumpter
This direct access to Android Contact and Calendar functionality is NOT available in LiveCode.

But I have to write that I've been itching to write my own Contacts app.

Re: Accessing Contacts (AddressBook) & Calendar

Posted: Sun Sep 25, 2011 11:35 am
by christerp1
Yet another addressbook / contacts...? There are literally dozens of those available in the market. I have asked the LiveCode development the question if functionality accessing Android (& other mobile) internals would soon become available. I have looked into XDA developers pages, and looks like there one could find something. I have seen C++/C#/Java code snippets, where one could develop externals. Yet another possibility is to root the device, and study the structure of the internal databases using SQL, hoping that the file system stays stable through out a number of Android versions / device models. The same applies to iOS.

Re: Accessing Contacts (AddressBook) & Calendar

Posted: Tue Oct 04, 2011 11:18 pm
by BarrySumpter
From Moby Tools
http://www.mobytools.com/en/qaa/mobile-devices-qaa.html
1. Can I use Moby Tools to access Android contacts database on my HTC phone ?

Yes and No. Directly on many phones, in order to access internal SQLite database you need to perform a ROOT'ing procedure. This is sort of unlocking the phone and
opening a database for external applications. there is a SQLite utility on Android Market which can be used to manipulate SQLite dB directly on Android phone, but it
requires rooting the phone as well. The protection of contacts database is not a limitation of the Android OS itself, but rather vendor who delivers the and the
offers the service. Please keep in mind that unlocking the phone doesn't allow external SQLite access. You can find more information on XDA website.


From XDA:
http://forum.xda-developers.com/showthread.php?t=726051
For anyone who's interested, after a load of digging I've found the following:

Contacts = /data/data/com.android.providers.contacts/databases/contacts.db
SMS = /data/data/com.android.providers.telephony/databases/mmssms.db
Bookmarks = /data/data/com.android.browser/databases/browser.db

You can get them off the emulator using the adb pull command. E.g.

adb pull /data/data/com.android.providers.contacts/databases/contacts.db d:\contacts.db

Cheers

Re: Accessing Contacts (AddressBook) & Calendar

Posted: Sun Oct 09, 2011 12:20 am
by BarrySumpter

Re: Accessing Contacts (AddressBook) & Calendar

Posted: Sun Apr 01, 2012 12:31 am
by BarrySumpter
Nice.

Use root explorer to open contacts.db
And root explorer will brows the tables and their data

Re: Accessing Contacts (AddressBook) & Calendar

Posted: Sat Jun 29, 2013 7:53 pm
by kurt
Since this is an older thread, I was wondering whether there is currently (June 2013) a way of writing entries to the Android Calendar application using LiveCode?
Thanks, Kurt

Re: Accessing Contacts (AddressBook) & Calendar

Posted: Mon Aug 15, 2016 12:12 pm
by simon.schvartzman
it is now August 2016 and it seems there is not Calendar functionality available yet in LC. Unbelievable!!!!

I really don't understand it, and LC team doesn't seem to care about the lack of this very key feature...

Such a great product missing something so important.

Re: Accessing Contacts (AddressBook) & Calendar

Posted: Fri Oct 27, 2017 8:18 pm
by kaikuse
neither in 2017 yet !!!

Jose Montero

Re: Accessing Contacts (AddressBook) & Calendar

Posted: Sat Oct 28, 2017 4:42 pm
by jacque
kaikuse wrote:
Fri Oct 27, 2017 8:18 pm
neither in 2017 yet !!!
Contacts are fully functional. The calendar is still missing.