How to get synced Google contact group programmatically ?

by Goutom » Thu, 19 May 2011 14:55:37 GMT


Sponsored Links
 Hi All

We know android phone can sync google contact group dynamically if we add
account.Now I want to get the file where the groups information  are saved.I
need code to get groups information and need to show in my activity.

Can any one help ?

Cheers
Goutom
WebRep
Overall rating

-- 



Re: How to get synced Google contact group programmatically ?

by Jens » Fri, 20 May 2011 06:32:10 GMT


 I assume you mean :

 http://developer.android.com/reference/android/provider/ContactsContract.Groups.html 
 http://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.GroupMembership.html 

Groups & group membership information is in the same ContentProvider
that stores the actual contacts synced with Google.




-- 


Sponsored Links


Other Threads

1. Need help for layout/scaling for pic with invisible buttons

I need help trying to create an interactive image. The image will have
5 different areas that will be "clickable." Each clickable area will
be invisible and play a different sound. For example when a user
clicks a certain part of the image a sound will play, however there
will be no button or anything overlayed on the image. What would be
the best way/layout to go about this? I figured I could do absolute
layout and just make some invisible buttons on the image that play a
sound but I am pretty sure there will be scaling issues on other
phones when using absolute, plus I heard they are trying to get rid of
that layout. Thanks for any help!

-- 

2. Tips Jadikan Android Device ala BB

Mohon maaf kalo misalnya tips ini udah kuno, baru nemu kemaren soalnya
sewaktu iseng2 browsing fitur2 di Gmail...

Gmail ternyata mempunyai fitur untuk mengirim email dengan email address
lain diluar account Gmail yg kita miliki.
Kita cukup add email address tersebut di Setting-Accounts...disitu nanti ada
pilihan untuk send email from another email address. Setelah itu centang
pilihan reply from same address, ane lupa pilihannya apa yg pasti jgn
centang send from default address, centang yg send email dari email yg sama.
Nah setelah itu setting email address tersebut untuk forward email ke
account Gmail kita.
Nantinya jika ada email yg di forward dari email address tersebut,jika kita
reply dari handset,pengirimnya otomatis akan berasal dari email address yg
sama,bukan dari Gmail kita.

Nah yg kurang nih,karena ane pakenya android v 1.6 utk apps Gmail nya ga
bisa ada pilihan send fromnya,jadi kalo compose email hanya bisa dari
default yg kita setting di account Gmail kita.

Silahkan mencoba...
Dgn fitur ini jadi bisa ngirit setting email di handset,dan bagusnya semua
account email jadi push karena diforward ke Gmail, dan bisa reply layaknya
kita reply dari account email aslinya.

sent from my HTC Dream using Tri Broadband

gtalk: hmartinu...@gmail.com
ym: nu...@yahoo.com
PMessenger: 1E9C0399

-- 
"Indonesian Android Community [id-android]" 

3. Update calendar events

4. android, zhang hong wants to chat

5. Backward Compatibility of android:installLocation

6. Emulator Power Button on a Mac

7. Cam picture 'bigger' then preview