damonkohler / sl4a

SL4A brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device.
Apache License 2.0
2.44k stars 800 forks source link

Enable scripting to manage contacts and groups #289

Open damonkohler opened 9 years ago

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:23

Enhancement request:  Enable scripting (in Python and other tools) to 
manage contacts and contact groups directly on the phone.

Specifically, would like the ability to create, replace, update and delete 
contacts, including photo attributes.

Also would like the ability to create and edit contact groups.

Also, the ability to add a new contact specifically to a group directly on 
the phone.

Also, delete all contacts for a group, to enable a fresh reload from 
external sources.

Also, toggle sync of contacts, globally and by group, directly on the 
phone.

Original issue reported on code.google.com by boomerbubba@gmail.com on 16 Sep 2009 at 9:46

Copied from original issue: damonkohler/android-scripting#102

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:23

As I understand the problem, giving access to the content provider API should 
solve
this issue.

If there is a way to build, read and write 'content://' uri, all of the above 
will be
possible. 

Original comment by oli.sa...@gmail.com on 8 Mar 2010 at 2:14

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:23

To help the problem along, I've hacked up a quick and dirty Contacts API to 
serve as
the jumping-off point for any further development.

Please find attached a patch for AndroidFacade.java to provide a simple 
(read-only)
contacts-querying API.

IMPORTANT: Please note this patch relies on the suggested fix I submitted for 
Issue
288 (http://code.google.com/p/android-scripting/issues/detail?id=288).

Original comment by shaper.pmp@gmail.com on 12 Apr 2010 at 11:12

Attachments:

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:23

Thanks for the patch. Although code will probably end up in different file as 
we tend 
to keep things organized a bit... :)

I'll just wait for @Damon to accept the feature request...

Original comment by MeanEYE.rcf on 13 Apr 2010 at 10:08

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:23

Original comment by damonkoh...@gmail.com on 13 Apr 2010 at 10:46

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:23

Original comment by damonkoh...@gmail.com on 13 Apr 2010 at 10:46

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:23

@MeanEYE.rcf: No problem - I debated creating a new "ContactsFacade" class, but 
I'm
not too familiar with the ASE codebase yet, so I thought I'd throw what I had 
out
there as a starting point. ;-)

I'm actually interested in hacking on ASE some more and submitting more
patches/bug-fixes/enhancements, but I've never contributed to a Google code 
project
before - can you tell me if there's an approved way to do it, or is "attaching
patches to issues" convenient enough for you guys?

Original comment by shaper.pmp@gmail.com on 13 Apr 2010 at 10:27

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:23

Original comment by damonkoh...@gmail.com on 6 Jun 2010 at 5:29

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:23

Is it currently possible?

Original comment by chobi....@gmail.com on 6 Jan 2013 at 2:59

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:23

Somehow, am still the owner of this feature request, although I am no longer 
involved with the project. Someone else should take a look at it.

Sorry chobi.0ne.

Original comment by MeanEYE.rcf on 6 Jan 2013 at 3:15

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:23

It's fine. I found the way to do it for my needs via gdata.contacts . It does 
everything I need online via google services and then syncs with my phone.
Thank you.

Original comment by chobi....@gmail.com on 8 Jan 2013 at 8:11