M7350/base/docs/html/sdk/api_diff/5/changes/android.content.ContentResolver.html

304 lines
15 KiB
HTML
Raw Normal View History

2024-09-09 08:52:07 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML style="overflow:auto;">
<HEAD>
<meta name="generator" content="JDiff v1.1.0">
<!-- Generated by the JDiff Javadoc doclet -->
<!-- (http://www.jdiff.org) -->
<meta name="description" content="JDiff is a Javadoc doclet which generates an HTML report of all the packages, classes, constructors, methods, and fields which have been removed, added or changed in any way, including their documentation, when two APIs are compared.">
<meta name="keywords" content="diff, jdiff, javadiff, java diff, java difference, API difference, difference between two APIs, API diff, Javadoc, doclet">
<TITLE>
android.content.ContentResolver
</TITLE>
<link href="../../../../assets/android-developer-docs.css" rel="stylesheet" type="text/css" />
<link href="../stylesheet-jdiff.css" rel="stylesheet" type="text/css" />
<noscript>
<style type="text/css">
body{overflow:auto;}
#body-content{position:relative; top:0;}
#doc-content{overflow:visible;border-left:3px solid #666;}
#side-nav{padding:0;}
#side-nav .toggle-list ul {display:block;}
#resize-packages-nav{border-bottom:3px solid #666;}
</style>
</noscript>
<style type="text/css">
</style>
</HEAD>
<BODY>
<!-- Start of nav bar -->
<a name="top"></a>
<div id="header" style="margin-bottom:0;padding-bottom:0;">
<div id="headerLeft">
<a href="../../../../index.html" tabindex="-1" target="_top"><img src="../../../../assets/images/bg_logo.png" alt="Android Developers" /></a>
</div>
<div id="headerRight">
<div id="headerLinks">
<!-- <img src="/assets/images/icon_world.jpg" alt="" /> -->
<span class="text">
<!-- &nbsp;<a href="#">English</a> | -->
<nobr><a href="http://developer.android.com" target="_top">Android Developers</a> | <a href="http://www.android.com" target="_top">Android.com</a></nobr>
</span>
</div>
<div class="and-diff-id" style="margin-top:6px;margin-right:8px;">
<table class="diffspectable">
<tr>
<td colspan="2" class="diffspechead">API Diff Specification</td>
</tr>
<tr>
<td class="diffspec" style="padding-top:.25em">To Level:</td>
<td class="diffvaluenew" style="padding-top:.25em">5</td>
</tr>
<tr>
<td class="diffspec">From Level:</td>
<td class="diffvalueold">4</td>
</tr>
<tr>
<td class="diffspec">Generated</td>
<td class="diffvalue">2009.11.19 19:35</td>
</tr>
</table>
</div><!-- End and-diff-id -->
<div class="and-diff-id" style="margin-right:8px;">
<table class="diffspectable">
<tr>
<td class="diffspec" colspan="2"><a href="jdiff_statistics.html">Statistics</a>
</tr>
</table>
</div> <!-- End and-diff-id -->
</div> <!-- End headerRight -->
</div> <!-- End header -->
<div id="body-content" xstyle="padding:12px;padding-right:18px;">
<div id="doc-content" style="position:relative;">
<div id="mainBodyFluid">
<H2>
Class android.content.<A HREF="../../../../reference/android/content/ContentResolver.html" target="_top"><font size="+2"><code>ContentResolver</code></font></A>
</H2>
<a NAME="constructors"></a>
<a NAME="methods"></a>
<p>
<a NAME="Added"></a>
<TABLE summary="Added Methods" WIDTH="100%">
<TR>
<TH VALIGN="TOP" COLSPAN=2>Added Methods</FONT></TD>
</TH>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="android.content.ContentResolver.acquireContentProviderClient_added(android.net.Uri)"></A>
<nobr><code>ContentProviderClient</code>&nbsp;<A HREF="../../../../reference/android/content/ContentResolver.html#acquireContentProviderClient(android.net.Uri)" target="_top"><code>acquireContentProviderClient</code></A>(<code>Uri</code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="android.content.ContentResolver.acquireContentProviderClient_added(java.lang.String)"></A>
<nobr><code>ContentProviderClient</code>&nbsp;<A HREF="../../../../reference/android/content/ContentResolver.html#acquireContentProviderClient(java.lang.String)" target="_top"><code>acquireContentProviderClient</code></A>(<code>String</code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="android.content.ContentResolver.addStatusChangeListener_added(int, android.content.SyncStatusObserver)"></A>
<nobr><code>Object</code>&nbsp;<A HREF="../../../../reference/android/content/ContentResolver.html#addStatusChangeListener(int, android.content.SyncStatusObserver)" target="_top"><code>addStatusChangeListener</code></A>(<code>int,</nobr> SyncStatusObserver<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="android.content.ContentResolver.applyBatch_added(java.lang.String, java.util.ArrayList<android.content.ContentProviderOperation>)"></A>
<nobr><code>ContentProviderResult[]</code>&nbsp;<A HREF="../../../../reference/android/content/ContentResolver.html#applyBatch(java.lang.String, java.util.ArrayList<android.content.ContentProviderOperation>)" target="_top"><code>applyBatch</code></A>(<code>String,</nobr> ArrayList&lt;ContentProviderOperation&gt;<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="android.content.ContentResolver.cancelSync_added(android.accounts.Account, java.lang.String)"></A>
<nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/content/ContentResolver.html#cancelSync(android.accounts.Account, java.lang.String)" target="_top"><code>cancelSync</code></A>(<code>Account,</nobr> String<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="android.content.ContentResolver.getIsSyncable_added(android.accounts.Account, java.lang.String)"></A>
<nobr><code>int</code>&nbsp;<A HREF="../../../../reference/android/content/ContentResolver.html#getIsSyncable(android.accounts.Account, java.lang.String)" target="_top"><code>getIsSyncable</code></A>(<code>Account,</nobr> String<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="android.content.ContentResolver.getMasterSyncAutomatically_added()"></A>
<nobr><code>boolean</code>&nbsp;<A HREF="../../../../reference/android/content/ContentResolver.html#getMasterSyncAutomatically()" target="_top"><code>getMasterSyncAutomatically</code></A>()</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="android.content.ContentResolver.getSyncAdapterTypes_added()"></A>
<nobr><code>SyncAdapterType[]</code>&nbsp;<A HREF="../../../../reference/android/content/ContentResolver.html#getSyncAdapterTypes()" target="_top"><code>getSyncAdapterTypes</code></A>()</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="android.content.ContentResolver.getSyncAutomatically_added(android.accounts.Account, java.lang.String)"></A>
<nobr><code>boolean</code>&nbsp;<A HREF="../../../../reference/android/content/ContentResolver.html#getSyncAutomatically(android.accounts.Account, java.lang.String)" target="_top"><code>getSyncAutomatically</code></A>(<code>Account,</nobr> String<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="android.content.ContentResolver.isSyncActive_added(android.accounts.Account, java.lang.String)"></A>
<nobr><code>boolean</code>&nbsp;<A HREF="../../../../reference/android/content/ContentResolver.html#isSyncActive(android.accounts.Account, java.lang.String)" target="_top"><code>isSyncActive</code></A>(<code>Account,</nobr> String<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="android.content.ContentResolver.isSyncPending_added(android.accounts.Account, java.lang.String)"></A>
<nobr><code>boolean</code>&nbsp;<A HREF="../../../../reference/android/content/ContentResolver.html#isSyncPending(android.accounts.Account, java.lang.String)" target="_top"><code>isSyncPending</code></A>(<code>Account,</nobr> String<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="android.content.ContentResolver.removeStatusChangeListener_added(java.lang.Object)"></A>
<nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/content/ContentResolver.html#removeStatusChangeListener(java.lang.Object)" target="_top"><code>removeStatusChangeListener</code></A>(<code>Object</code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="android.content.ContentResolver.requestSync_added(android.accounts.Account, java.lang.String, android.os.Bundle)"></A>
<nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/content/ContentResolver.html#requestSync(android.accounts.Account, java.lang.String, android.os.Bundle)" target="_top"><code>requestSync</code></A>(<code>Account,</nobr> String<nobr>,</nobr> Bundle<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="android.content.ContentResolver.setIsSyncable_added(android.accounts.Account, java.lang.String, int)"></A>
<nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/content/ContentResolver.html#setIsSyncable(android.accounts.Account, java.lang.String, int)" target="_top"><code>setIsSyncable</code></A>(<code>Account,</nobr> String<nobr>,</nobr> int<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="android.content.ContentResolver.setMasterSyncAutomatically_added(boolean)"></A>
<nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/content/ContentResolver.html#setMasterSyncAutomatically(boolean)" target="_top"><code>setMasterSyncAutomatically</code></A>(<code>boolean</code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="android.content.ContentResolver.setSyncAutomatically_added(android.accounts.Account, java.lang.String, boolean)"></A>
<nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/content/ContentResolver.html#setSyncAutomatically(android.accounts.Account, java.lang.String, boolean)" target="_top"><code>setSyncAutomatically</code></A>(<code>Account,</nobr> String<nobr>,</nobr> boolean<nobr><nobr></code>)</nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<p>
<a NAME="Changed"></a>
<TABLE summary="Changed Methods" WIDTH="100%">
<TR>
<TH VALIGN="TOP" COLSPAN=3>Changed Methods</FONT></TD>
</TH>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="android.content.ContentResolver.startSync_changed(android.net.Uri, android.os.Bundle)"></A>
<nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/content/ContentResolver.html#startSync(android.net.Uri, android.os.Bundle)" target="_top"><code>startSync</code></A>(<code>Uri,</nobr> Bundle<nobr><nobr></code>) </nobr>
</TD>
<TD VALIGN="TOP" WIDTH="30%">
<b>Now deprecated</b>.<br>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="android.content.ContentResolver.cancelSync_changed(android.net.Uri)"></A>
<nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/content/ContentResolver.html#cancelSync(android.net.Uri)" target="_top"><code>cancelSync</code></A>(<code>Uri</code>) </nobr>
</TD>
<TD VALIGN="TOP" WIDTH="30%">
<b>Now deprecated</b>.<br>
</TD>
<TD>&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<a NAME="fields"></a>
<p>
<a NAME="Added"></a>
<TABLE summary="Added Fields" WIDTH="100%">
<TR>
<TH VALIGN="TOP" COLSPAN=2>Added Fields</FONT></TD>
</TH>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="android.content.ContentResolver.SYNC_EXTRAS_INITIALIZE"></A>
<nobr><code>String</code>&nbsp;<A HREF="../../../../reference/android/content/ContentResolver.html#SYNC_EXTRAS_INITIALIZE" target="_top"><code>SYNC_EXTRAS_INITIALIZE</code></A></nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="android.content.ContentResolver.SYNC_EXTRAS_MANUAL"></A>
<nobr><code>String</code>&nbsp;<A HREF="../../../../reference/android/content/ContentResolver.html#SYNC_EXTRAS_MANUAL" target="_top"><code>SYNC_EXTRAS_MANUAL</code></A></nobr>
</TD>
<TD>&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<p>
<a NAME="Changed"></a>
<TABLE summary="Changed Fields" WIDTH="100%">
<TR>
<TH VALIGN="TOP" COLSPAN=3>Changed Fields</FONT></TD>
</TH>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="android.content.ContentResolver.SYNC_EXTRAS_ACCOUNT"></A>
<nobr><code>String</code>&nbsp;<A HREF="../../../../reference/android/content/ContentResolver.html#SYNC_EXTRAS_ACCOUNT" target="_top"><code>SYNC_EXTRAS_ACCOUNT</code></font></A></nobr> </TD>
<TD VALIGN="TOP" WIDTH="30%">
<b>Now deprecated</b>.<br>
</TD>
<TD>&nbsp;</TD>
</TR>
<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
<TD VALIGN="TOP" WIDTH="25%">
<A NAME="android.content.ContentResolver.SYNC_EXTRAS_FORCE"></A>
<nobr><code>String</code>&nbsp;<A HREF="../../../../reference/android/content/ContentResolver.html#SYNC_EXTRAS_FORCE" target="_top"><code>SYNC_EXTRAS_FORCE</code></font></A></nobr> </TD>
<TD VALIGN="TOP" WIDTH="30%">
<b>Now deprecated</b>.<br>
</TD>
<TD>&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
</div>
<div id="footer">
<div id="copyright">
Except as noted, this content is licensed under
<a href="http://creativecommons.org/licenses/by/2.5/"> Creative Commons Attribution 2.5</a>.
For details and restrictions, see the <a href="/license.html">Content License</a>.
</div>
<div id="footerlinks">
<p>
<a href="http://www.android.com/terms.html">Site Terms of Service</a> -
<a href="http://www.android.com/privacy.html">Privacy Policy</a> -
<a href="http://www.android.com/branding.html">Brand Guidelines</a>
</p>
</div>
</div> <!-- end footer -->
</div><!-- end doc-content -->
</div> <!-- end body-content -->
<script src="http://www.google-analytics.com/ga.js" type="text/javascript">
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-5831155-1");
pageTracker._setAllowAnchor(true);
pageTracker._initData();
pageTracker._trackPageview();
} catch(e) {}
</script>
</BODY>
</HTML>