android.provider
Class Sync.Settings
java.lang.Object
android.provider.Sync.Settings
- All Implemented Interfaces:
- BaseColumns, Sync.SettingsColumns
- Enclosing class:
- Sync
public static final class Sync.Settings
- extends Object
- implements BaseColumns, Sync.SettingsColumns
Provides constants and utility methods to access and use the settings
table.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONTENT_URI
public static final Uri CONTENT_URI
- The Uri of the settings table. This table behaves a little differently than
normal tables. Updates are not allowed, only inserts, and inserts cause a replace
to be performed, which first deletes the row if it is already present.
SETTING_LISTEN_FOR_TICKLES
public static final String SETTING_LISTEN_FOR_TICKLES
- controls whether or not the devices listens for sync tickles
- See Also:
- Constant Field Values
SETTING_SYNC_PROVIDER_PREFIX
public static final String SETTING_SYNC_PROVIDER_PREFIX
- controls whether or not the individual provider is synced when tickles are received
- See Also:
- Constant Field Values
Sync.Settings
public Sync.Settings()
setSyncProviderAutomatically
public static void setSyncProviderAutomatically(ContentResolver contentResolver,
String providerName,
boolean sync)
- A convenience method to set whether or not the provider is synced when
it receives a network tickle.
- Parameters:
contentResolver - the ContentResolver to use to access the settings tableproviderName - the provider whose behavior is being controlledsync - true if the provider should be synced when tickles are received for it
setListenForNetworkTickles
public static void setListenForNetworkTickles(ContentResolver contentResolver,
boolean flag)
- A convenience method to set whether or not the tickle xmpp connection
should be established.
- Parameters:
contentResolver - the ContentResolver to use to access the settings tableflag - true if the tickle xmpp connection should be established
Please submit a feedback, bug or feature