diff options
| author | Dirk Dougherty <ddougherty@google.com> | 2010-02-08 10:22:43 -0800 |
|---|---|---|
| committer | Dirk Dougherty <ddougherty@google.com> | 2010-02-09 18:00:44 -0800 |
| commit | 658d86e5be4c776813797d9806fc80b7b7c9a7cc (patch) | |
| tree | 7bf38c8ab91e9a335634c0f086e5c45a86342ca5 /samples/SampleSyncAdapter | |
| parent | ca7a9d3497b84fe5b3576d9ea1d1cefa32850fd1 (diff) | |
| download | android_development-658d86e5be4c776813797d9806fc80b7b7c9a7cc.tar.gz android_development-658d86e5be4c776813797d9806fc80b7b7c9a7cc.tar.bz2 android_development-658d86e5be4c776813797d9806fc80b7b7c9a7cc.zip | |
Add SampleSyncAdapter to SDK build and docs build. Add CubeLiveWallpaper to docs build.
Change-Id: I149fb2aab91d0a2dfc4242a85118bf20dea97e42
Diffstat (limited to 'samples/SampleSyncAdapter')
| -rw-r--r-- | samples/SampleSyncAdapter/_index.html | 49 |
1 files changed, 30 insertions, 19 deletions
diff --git a/samples/SampleSyncAdapter/_index.html b/samples/SampleSyncAdapter/_index.html index b0fbd4aab..4191ba507 100644 --- a/samples/SampleSyncAdapter/_index.html +++ b/samples/SampleSyncAdapter/_index.html @@ -1,26 +1,37 @@ -<p>A sample that demonstrates how an application can communicate with cloud-based services and synchronize their data with data stored locally in a content provider. -The sample uses two related parts of the Android framework — the account manager and the synchronization manager (through a sync adapter).</p> +<p>This sample demonstrates how an application can communicate with a +cloud-based service and synchronize its data with data stored locally in a +content provider. The sample uses two related parts of the Android framework +— the account manager and the synchronization manager (through a sync +adapter).</p> -<p> The <a href="../../../android/accounts/AccountManager">account manager</a> allows sharing of credentials across multiple applications and services. -Users enter the credentials for each account only once — applications with the <code>USE_CREDENTIALS</code> permission can then query the account manager - to obtain an auth token for the account.The authenticator (a pluggable component of account manager) requests credentials from the user, validates them - with an authentication server running in the cloud, and then stores them to the AccountManager. -This sample demonstrates how to write an authenticator for your -service by extending the new <code><a href="../../../android/accounts/AbstractAccountAuthenticator.html">AbstractAccountAuthenticator</a></code> abstract class. -</p> +<p> The <a +href="../../../reference/android/accounts/AccountManager.html">account +manager</a> allows sharing of credentials across multiple applications and +services. Users enter the credentials for each account only once — +applications with the <code>USE_CREDENTIALS</code> permission can then query the +account manager to obtain an auth token for the account. An authenticator (a +pluggable component of account manager) requests credentials from the user, +validates them with an authentication server running in the cloud, and then +stores them to the account manager. This sample demonstrates how to write an +authenticator for your service by extending the new <code><a +href="../../../reference/android/accounts/AbstractAccountAuthenticator.html"> +AbstractAccountAuthenticator</a></code> abstract class. </p> -<p>The sync adapter (essential to the synchronization service) declares the account type and ContentProvider authority to the sync manager. -This sample demosntrates how to write your own sync adapters by extending the <code><a href="../../../android/content/AbstractThreadedSyncAdapter.html">AbstractThreadedSyncAdapter</a></code> -abstract class and implementing the onPerformSync() method that gets called whenever the sync manager issues a sync operation for that sync adapter. -</p> +<p>The sync adapter (essential to the synchronization service) declares the +account type and ContentProvider authority to the sync manager. This sample +demosntrates how to write your own sync adapters by extending the <code><a +href="../../../reference/android/content/AbstractThreadedSyncAdapter.html"> +AbstractThreadedSyncAdapter</a></code> abstract class and implementing the +<code>onPerformSync()</code> method, which gets called whenever the sync manager +issues a sync operation for that sync adapter. </p> -<p> The service for this sample application is running at: <br> -http://samplesyncadapter.appspot.com/users -</p> +<p> The cloud-based service for this sample application is running at: </p> +<p style="margin-left:2em;">http://samplesyncadapter.appspot.com/users</p> -<p class="note">When you install this sample application, a new syncable "SampleSyncAdapter" account will be added to your phone's account manager. -You can go to "Settings | Accounts & sync" to view the accounts that are stored in the account manager and to change their sync settings. </p> +<p>When you install this sample application, a new syncable "SampleSyncAdapter" +account will be added to your phone's account manager. You can go to "Settings | +Accounts & Sync" to view the account and change its sync settings. </p> <img alt="Screenshot 1" src="../images/SampleSyncAdapter1.png" /> <img alt="Screenshot 2" src="../images/SampleSyncAdapter2.png" /> -<img alt="Screenshot 3" src="../images/SampleSyncAdapter3.png" />
\ No newline at end of file +<img alt="Screenshot 3" src="../images/SampleSyncAdapter3.png" /> |
