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. Help for decoding the camera data from the PreviewCallback

Hi Sujoy,
Thanks for sharing this information. I have another doubt now - Can I get
continuous frames of data as bitmaps without user interaction using this
approach?


On Wed, May 27, 2009 at 10:46 AM, Sujay Krishna Suresh <








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

2. detecting idle, off hook and ringing

As Bnet above, i'm trying to write a program whichs detects the
different states of the phone and mke a different noise in each case.
There is a problem that i really don't understand!!!!!
Please someone can take a look at it and try to explain to ma what's
wrong ?

public class testsonqdappel extends Activity {

        private TelephonyManager telephone;
        private MediaPlayer audio;

        public void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
        telephone = (TelephonyManager)getSystemService
(Context.TELEPHONY_SERVICE);
        }
          private PhoneStateListener psl = new PhoneStateListener() {

                @Override
                        public void  onCallStateChanged  (int state, String 
incomingNumber)
                {
                         state = telephone.getCallState();
                        if(state ==
android.telephony.TelephonyManager.CALL_STATE_IDLE)
                        {
                                audio = MediaPlayer.create(getBaseContext(),
R.raw.bonjour);
                                    audio.start();
                        }

                        if (state ==
android.telephony.TelephonyManager.CALL_STATE_RINGING)
                        {
                                audio = MediaPlayer.create(getBaseContext(),
R.raw.batterie);
                                    audio.start();
                        }

                        if (state ==
android.telephony.TelephonyManager.CALL_STATE_OFFHOOK)
                        {
                                audio = MediaPlayer.create(getBaseContext(),
R.raw.pleine);
                                    audio.start();
                        }
                }
          };
}

Thanks a lot
--~--~---------~--~----~------------~-------~--~----~

3. How to update an app itself?

4. Where are the table layout sample files?

5. Imitating the Launcher or 'Home Screen'

6. about android debuggerd

7. How to use a finger to pull the screen to view more data?