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. Exclude directory with adb pull

Hy guys, I need a help.
With my java application I have created a private directory in my
/data/data/org.android.myapplication. The name is "backup".

I want that when anyone execute "adb pull /data" my directory must not be
copied.
Can someone help me?

Thanks for all.

--~--~---------~--~----~------------~-------~--~----~

2. receiver enabled=false , problems after instantiation to set to listen

Hello List,

in my manifest I set an custom object Dots that extends a 
BroadcastReceiver to receive a certain broadcast string.

<receiver
android:name=".model.Dots"
android:enabled="false">
<intent-filter >
<action android:name="org.dadata.demo.receiverTest" />
</intent-filter>
</receiver>

I dont want Android to instantiate the object for me hence the enable=false.

In the Activity a new Dots is created

Dots dots = new Dots()

How do i now make the Dots start listening to the broadcasting. I tried 
this, but it doesnt work and it also feels much to complicated..

ComponentName cName = new 
ComponentName("org.dadata.demo","org.dadata.demo.Dots");
PackageManager pm = this.getPackageManager();
pm.setComponentEnabledSetting(cName , 
PackageManager.COMPONENT_ENABLED_STATE_ENABLED , 
PackageManager.DONT_KILL_APP);

Is there a workable easy way to do this?

Thank you,

Jiri



--~--~---------~--~----~------------~-------~--~----~

3. how to show dialog with only the progress image

4. How can I add my definition variables in Android source?

5. how to show dialog with only the progress image

6. Struggling with google maps (SOLVED)

7. Connection status