Accessing Contacts (AddressBook) & Calendar

The place to discuss anything and everything about running your LiveCode on Android

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
christerp1
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 15
Joined: Tue Jan 26, 2010 1:11 am

Accessing Contacts (AddressBook) & Calendar

Post by christerp1 » Sat Sep 24, 2011 1:11 pm

Need to get access to Android Contacts and Calendar. Anyone done it from LiveCode?

BarrySumpter
Posts: 1201
Joined: Sun Apr 24, 2011 2:17 am

Re: Accessing Contacts (AddressBook) & Calendar

Post by BarrySumpter » Sat Sep 24, 2011 9:09 pm

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.
All my best,
Barry G. Sumpter

Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.

christerp1
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 15
Joined: Tue Jan 26, 2010 1:11 am

Re: Accessing Contacts (AddressBook) & Calendar

Post by christerp1 » Sun Sep 25, 2011 11:35 am

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.

BarrySumpter
Posts: 1201
Joined: Sun Apr 24, 2011 2:17 am

Re: Accessing Contacts (AddressBook) & Calendar

Post by BarrySumpter » Tue Oct 04, 2011 11:18 pm

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
Last edited by BarrySumpter on Wed Nov 23, 2011 6:42 am, edited 1 time in total.
All my best,
Barry G. Sumpter

Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.

BarrySumpter
Posts: 1201
Joined: Sun Apr 24, 2011 2:17 am

Re: Accessing Contacts (AddressBook) & Calendar

Post by BarrySumpter » Sun Oct 09, 2011 12:20 am

All my best,
Barry G. Sumpter

Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.

BarrySumpter
Posts: 1201
Joined: Sun Apr 24, 2011 2:17 am

Re: Accessing Contacts (AddressBook) & Calendar

Post by BarrySumpter » Sun Apr 01, 2012 12:31 am

Nice.

Use root explorer to open contacts.db
And root explorer will brows the tables and their data
All my best,
Barry G. Sumpter

Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.

kurt
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 21
Joined: Sat Apr 08, 2006 8:30 pm
Location: Connecticut, USA
Contact:

Re: Accessing Contacts (AddressBook) & Calendar

Post by kurt » Sat Jun 29, 2013 7:53 pm

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

simon.schvartzman
Posts: 136
Joined: Tue Jul 29, 2014 12:52 am

Re: Accessing Contacts (AddressBook) & Calendar

Post by simon.schvartzman » Mon Aug 15, 2016 12:12 pm

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.
Simon

kaikuse
Posts: 12
Joined: Tue Dec 29, 2015 7:30 pm

Re: Accessing Contacts (AddressBook) & Calendar

Post by kaikuse » Fri Oct 27, 2017 8:18 pm

neither in 2017 yet !!!

Jose Montero

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4155
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Accessing Contacts (AddressBook) & Calendar

Post by jacque » Sat Oct 28, 2017 4:42 pm

kaikuse wrote:
Fri Oct 27, 2017 8:18 pm
neither in 2017 yet !!!
Contacts are fully functional. The calendar is still missing.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply

Return to “Android Deployment”