Build 1.0_r1(from source)

android.provider
Class Sync.Settings

java.lang.Object
  extended by 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.


Nested Class Summary
static class Sync.Settings.QueryMap
           
 
Field Summary
static Uri CONTENT_URI
          The Uri of the settings table.
static String SETTING_LISTEN_FOR_TICKLES
          controls whether or not the devices listens for sync tickles
static String SETTING_SYNC_PROVIDER_PREFIX
          controls whether or not the individual provider is synced when tickles are received
 
Fields inherited from interface android.provider.BaseColumns
_COUNT, _ID
 
Fields inherited from interface android.provider.Sync.SettingsColumns
KEY, VALUE
 
Constructor Summary
Sync.Settings()
           
 
Method Summary
static void setListenForNetworkTickles(ContentResolver contentResolver, boolean flag)
          A convenience method to set whether or not the tickle xmpp connection should be established.
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Sync.Settings

public Sync.Settings()
Method Detail

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 table
providerName - the provider whose behavior is being controlled
sync - 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 table
flag - true if the tickle xmpp connection should be established

Build 1.0_r1(from source)

Please submit a feedback, bug or feature