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. tabwidget page moving

Was divided into two tabs, as follows.

maintab.java]
tab0.setIndicator("",
getResources().getDrawable(R.drawable.b01)).setContent(new
Intent(this, StartPage.class));
tab1.setIndicator("",
getResources().getDrawable(R.drawable.w02)).setContent(new
Intent(this, SecPage.class));


During the first tab in the content pages can move.
[StartPage.java]
Intent intent = new Intent(StartPage.this, ThirdPage.class);
startActivityForResult(intent, 1);


Go to the page like that again, the resulting value is retrieved.

Go to the top of the page you like, but the tab disappears and the new
activity generated by the full screend

To leave the tab at the bottom of framelayout only way to do that?

-- 

2. Programatically answering a call

I'm experiencing the same problem. I saw a few links for people who
try to do the same and think the ACTION_ANSWER would not work due to
internal's implementation e.g:
http://www.anddev.org/viewtopic.php?p=34497

Anyone who knows a workaround which can help in programatically
intercept an incoming call?

This would be highly appreciated.

Thanks!!!

Danni

-- 

3. "System.out.println(...)" statements within the onCreate

4. Google Maps 4.0

5. AudioHardware ALSA api's failing CTS test

6. How to detect correctly APN changes

7. Different class files are generated using Eclipse & Ant