Skip to main content

Is it possible to turn on synch in Android Account



I'm working on an application that will allow a user to turn on/off synching for their exchange email account.





I am able to get the exchange account using:







Account[] accs = AccountManager.get(this).getAccountsByType("com.htc.android.mail.eas");







but the Account API doesn't seem to offer what I'm looking for. I have also found ContactsContract.Settings database table which stores synch data, but I'm not that sure where to start with that.





Any ideas?


Comments

  1. The ContentResolver contains the API you are looking for.

    Check out the "setIsSyncable" method.

    ReplyDelete

Post a Comment

Popular posts from this blog

Slow Android emulator

I have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have had some success in staring the emulator quickly but is very particulary. How can I, if possible, fix this problem?