diff --git a/docs/html/about/versions/android-1.6.jd b/docs/html/about/versions/android-1.6.jd index ffca6b6234061..970c343a2f45f 100755 --- a/docs/html/about/versions/android-1.6.jd +++ b/docs/html/about/versions/android-1.6.jd @@ -289,7 +289,7 @@ determining the density of the current device screen.
<supports-screen> element, the system
@@ -324,7 +324,7 @@ determining the density of the current device screen.targetSdkVersion: Indicates the API Level that the application is targeting.
It is able to run on older versions (down to minSdkVersion), but was explicitly tested to
diff --git a/docs/html/about/versions/android-4.0.3.jd b/docs/html/about/versions/android-4.0.3.jd
index bcfa35c94bce8..c4b503ce530c7 100644
--- a/docs/html/about/versions/android-4.0.3.jd
+++ b/docs/html/about/versions/android-4.0.3.jd
@@ -217,7 +217,7 @@ is in use.A new package, {@link android.net.wifi.p2p}, contains all the APIs for performing peer-to-peer connections with Wi-Fi. The primary class you need to work with is {@link android.net.wifi.p2p.WifiP2pManager}, which you can acquire by calling {@link -android.app.Activity#getSystemService getSystemService(WIFI_P2P_SERVICE)}. The {@link -android.net.wifi.p2p.WifiP2pManager} includes APIs that allow you to:
+android.app.Activity#getSystemService(java.lang.String) getSystemService(WIFI_P2P_SERVICE)}. +The {@link android.net.wifi.p2p.WifiP2pManager} includes APIs that allow you to:Android now allows your app to display unique content on additional screens that are connected to the user’s device over either a wired connection or Wi-Fi. To create unique content for a secondary display, extend the {@link android.app.Presentation} -class and implement the {@link android.app.Presentation#onCreate onCreate()} callback. Within -{@link android.app.Presentation#onCreate onCreate()}, specify your UI for the secondary display -by calling {@link android.app.Presentation#setContentView setContentView()}. +class and implement the {@link android.app.Dialog#onCreate onCreate()} callback. Within +{@link android.app.Dialog#onCreate onCreate()}, specify your UI for the secondary display +by calling {@link android.app.Dialog#setContentView setContentView()}. As an extension of the {@link android.app.Dialog} class, the {@link android.app.Presentation} class provides the region in which your app can display a unique UI on the secondary display.
@@ -241,13 +241,13 @@ appear on the secondary display.To detect at runtime when a new display has been connected, create an instance of {@link android.media.MediaRouter.SimpleCallback} in which you implement the {@link -android.media.MediaRouter.SimpleCallback#onRoutePresentationDisplayChanged +android.media.MediaRouter.Callback#onRoutePresentationDisplayChanged onRoutePresentationDisplayChanged()} callback method, which the system will call when a new presentation display is connected. Then register the {@link android.media.MediaRouter.SimpleCallback} by passing it to {@link android.media.MediaRouter#addCallback MediaRouter.addCallback()} along with the {@link android.media.MediaRouter#ROUTE_TYPE_LIVE_VIDEO} route type. When you receive a call to -{@link android.media.MediaRouter.SimpleCallback#onRoutePresentationDisplayChanged +{@link android.media.MediaRouter.Callback#onRoutePresentationDisplayChanged onRoutePresentationDisplayChanged()}, simply call {@link android.media.MediaRouter#getSelectedRoute MediaRouter.getSelectedRoute()} as mentioned above.
@@ -262,7 +262,7 @@ applied to your application or activity. likely a different screen density. Because the screen characteristics may different, you should provide resources that are optimized specifically for such larger displays. If you need to request additional resources from your {@link -android.app.Presentation}, call {@link android.app.Presentation#getContext()}{@link +android.app.Presentation}, call {@link android.app.Dialog#getContext()}{@link android.content.Context#getResources .getResources()} to get the {@link android.content.res.Resources} object corresponding to the display. This provides the appropriate resources from your app that are best suited for the @@ -510,7 +510,7 @@ common operations for you such as:To use a script intrinsic, call the static create() method of each instrinsic
to create an instance of the script. You then call the available set()
methods of each script intrinsic to set any necessary inputs and options.
- Finally, call the {@link android.renderscript.ScriptC#forEach forEach()}
+ Finally, call the {@link android.renderscript.Script#forEach forEach()}
method to execute the script.
To track changes to inserts and updates, you can now include the {@link android.provider.ContactsContract.ContactsColumns#CONTACT_LAST_UPDATED_TIMESTAMP} parameter with your selection to query only the contacts that have changed since the last time you queried the provider.
-To track which contacts have been deleted, the new table {@link android.provider.ContactsContract.DeletedContacts} provides a log of contacts that have been deleted (but each contact deleted is held in this table for a limited time). Similar to {@link android.provider.ContactsContract.ContactsColumns#CONTACT_LAST_UPDATED_TIMESTAMP}, you can use the new selection parameter, {@link android.provider.ContactsContract.DeletedContacts#CONTACT_DELETED_TIMESTAMP} to check which contacts have been deleted since the last time you queried the provider. The table also contains the constant {@link android.provider.ContactsContract.DeletedContacts#DAYS_KEPT_MILLISECONDS} containing the number of days (in milliseconds) that the log will be kept.
+To track which contacts have been deleted, the new table {@link android.provider.ContactsContract.DeletedContacts} provides a log of contacts that have been deleted (but each contact deleted is held in this table for a limited time). Similar to {@link android.provider.ContactsContract.ContactsColumns#CONTACT_LAST_UPDATED_TIMESTAMP}, you can use the new selection parameter, {@link android.provider.ContactsContract.DeletedContactsColumns#CONTACT_DELETED_TIMESTAMP} to check which contacts have been deleted since the last time you queried the provider. The table also contains the constant {@link android.provider.ContactsContract.DeletedContacts#DAYS_KEPT_MILLISECONDS} containing the number of days (in milliseconds) that the log will be kept.
Additionally, the Contacts Provider now broadcasts the {@link android.provider.ContactsContract.Intents#CONTACTS_DATABASE_CREATED} action when the user diff --git a/docs/html/about/versions/marshmallow/android-6.0-changes.jd b/docs/html/about/versions/marshmallow/android-6.0-changes.jd index b44142e9842ab..65c976beb7b95 100644 --- a/docs/html/about/versions/marshmallow/android-6.0-changes.jd +++ b/docs/html/about/versions/marshmallow/android-6.0-changes.jd @@ -280,7 +280,7 @@ change fixes a problem where Dalvik was checking access rules incorrectly in pre If your app uses the {@link java.lang.reflect.Constructor#newInstance(java.lang.Object...) newInstance()} method and you want to override access checks, call the -{@link java.lang.reflect.Constructor#setAccessible(boolean) setAccessible()} method with the input +{@link java.lang.reflect.AccessibleObject#setAccessible(boolean) setAccessible()} method with the input parameter set to {@code true}. If your app uses the v7 appcompat library or the v7 recyclerview library, diff --git a/docs/html/about/versions/marshmallow/android-6.0.jd b/docs/html/about/versions/marshmallow/android-6.0.jd index 240b08020db74..247c6d1cd0402 100644 --- a/docs/html/about/versions/marshmallow/android-6.0.jd +++ b/docs/html/about/versions/marshmallow/android-6.0.jd @@ -129,8 +129,8 @@ in your app.
adb -e emu finger touch <finger_id>-
On Windows, you may have to run {@code telnet 127.0.0.1 <emulator-id>} followed by - {@code finger touch <finger_id>}. +
On Windows, you may have to run {@code telnet 127.0.0.1
For each activity that you want to expose to
{@link android.service.chooser.ChooserTargetService}, add a
-{@code <meta-data>} element with the name
+{@code
The {@code IInAppBillingService.aidl} file will be installed to {@code <sdk>/extras/google/play_billing/}.
+The {@code IInAppBillingService.aidl} file will be installed to {@code
To add the AIDL to your project:
@@ -116,7 +116,7 @@ method calls. OK."First" is emphasized because although the Developer Console allows you to re-use an uploaded expansion file with a new APK, the expansion file's name does not change—it retains the version applied to it when you first uploaded the file.
The method takes the following parameters:
context: Your application's {@link android.content.Context}.In order to instantiate your {@code IStub} by calling {@code CreateStub()}, you must pass it @@ -956,7 +956,7 @@ which explains how to implement a license policy such as this one.
depends on the type of file you've used. As discussed in the overview, your expansion files can be any kind of file you want, but are renamed using a particular file name format and are saved to -{@code <shared-storage>/Android/obb/<package-name>/}. +{@codeRegardless of how you read your files, you should always first check that the external storage is available for reading. There's a chance that the user has the storage mounted to a @@ -1059,7 +1059,7 @@ option to specify the file suffixes that should not be compressed:
The Google Market Apk Expansion package includes a library called the APK
Expansion Zip Library (located in {@code
-<sdk>/extras/google/google_market_apk_expansion/zip_file/}). This is an optional library that
+
library directory (the directory containing the library's AndroidManifest.xml file)
-as the project root ({@code <sdk>/extras/google/play_licensing/library/AndroidManifest.xml}),
+as the project root ({@code If necessary, you can prevent users from installing your app when their devices don't provide a
given feature by declaring it with a {@code <uses-feature>}
+"{@docRoot}guide/topics/manifest/uses-feature-element.html">{@code
The API level allows you to declare the minimum version with which your app is
compatible, using the {@code
-<uses-sdk>} manifest tag and its
+
Similar to regular headset and A2DP profile devices, you must call {@link android.bluetooth.BluetoothAdapter#getProfileProxy getProfileProxy()} with a {@link android.bluetooth.BluetoothProfile.ServiceListener} and the {@link -android.bluetooth.BluetoothProfile.ServiceListener#HEALTH} profile type to +android.bluetooth.BluetoothProfile#HEALTH} profile type to establish a connection with the profile proxy object.
As a best practice, you should still declare your requirement for this
- orientation using a {@code <uses-feature>} element. If you declare
+ orientation using a {@code
If you query on a {@link
-android.provider.CalendarContract.Calendars#ACCOUNT_NAME
+android.provider.CalendarContract.SyncColumns#ACCOUNT_NAME
Calendars.ACCOUNT_NAME}, you must also include
-{@link android.provider.CalendarContract.Calendars#ACCOUNT_TYPE Calendars.ACCOUNT_TYPE}
+{@link android.provider.CalendarContract.SyncColumns#ACCOUNT_TYPE Calendars.ACCOUNT_TYPE}
in the selection. That is because a given account is
only considered unique given both its ACCOUNT_NAME and its
ACCOUNT_TYPE. The ACCOUNT_TYPE is the string corresponding to the
diff --git a/docs/html/guide/topics/providers/contacts-provider.jd b/docs/html/guide/topics/providers/contacts-provider.jd
index 2b145585ab837..ac855aa0ab272 100644
--- a/docs/html/guide/topics/providers/contacts-provider.jd
+++ b/docs/html/guide/topics/providers/contacts-provider.jd
@@ -329,13 +329,13 @@ page.title=Contacts Provider
_ID column of the raw contact for this data.
diff --git a/docs/html/guide/topics/renderscript/compute.jd b/docs/html/guide/topics/renderscript/compute.jd index 861c9258f2c25..fe686547fe6c8 100755 --- a/docs/html/guide/topics/renderscript/compute.jd +++ b/docs/html/guide/topics/renderscript/compute.jd @@ -294,7 +294,7 @@ such as Gaussian blur, convolution, and image blending. For more information, se
copy methods in {@link
android.renderscript.Allocation}.Note: In Android 4.1 (API Level 16) and higher, the -{@link android.view.accessibility.AccessibilityEvent#getSource getSource()} method, +{@link android.view.accessibility.AccessibilityRecord#getSource getSource()} method, as well as {@link android.view.accessibility.AccessibilityNodeInfo#getChild AccessibilityNodeInfo.getChild()} and {@link android.view.accessibility.AccessibilityNodeInfo#getParent getParent()}, return only @@ -372,7 +372,7 @@ public class MyAccessibilityService extends AccessibilityService { service configuration file. When events are received by your service, it can then retrieve the {@link android.view.accessibility.AccessibilityNodeInfo} object from the event using - {@link android.view.accessibility.AccessibilityEvent#getSource getSource()}. + {@link android.view.accessibility.AccessibilityRecord#getSource getSource()}. With the {@link android.view.accessibility.AccessibilityNodeInfo} object, your service can then explore the view hierarchy to determine what action to take and then act for the user using {@link android.view.accessibility.AccessibilityNodeInfo#performAction performAction()}.
diff --git a/docs/html/guide/topics/ui/declaring-layout.jd b/docs/html/guide/topics/ui/declaring-layout.jd index bf0db576cf2eb..ecdcfdc69ae16 100755 --- a/docs/html/guide/topics/ui/declaring-layout.jd +++ b/docs/html/guide/topics/ui/declaring-layout.jd @@ -423,7 +423,7 @@ ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,Then simply call -{@link android.widget.ListView#setAdapter setAdapter()} on your {@link android.widget.ListView}:
+{@link android.widget.AdapterView#setAdapter setAdapter()} on your {@link android.widget.ListView}:
ListView listView = (ListView) findViewById(R.id.listview);
listView.setAdapter(adapter);
diff --git a/docs/html/guide/topics/ui/dialogs.jd b/docs/html/guide/topics/ui/dialogs.jd
index 7ab4ca552b4d5..52cd1a03c38e8 100644
--- a/docs/html/guide/topics/ui/dialogs.jd
+++ b/docs/html/guide/topics/ui/dialogs.jd
@@ -643,7 +643,7 @@ android.support.v4.app.Fragment}.
or other {@link android.app.Dialog} objects to build the dialog in this case. If
you want the {@link android.support.v4.app.DialogFragment} to be
embeddable, you must define the dialog's UI in a layout, then load the layout in the
-{@link android.support.v4.app.DialogFragment#onCreateView
+{@link android.support.v4.app.Fragment#onCreateView
onCreateView()} callback.
Here's an example {@link android.support.v4.app.DialogFragment} that can appear as either a
diff --git a/docs/html/guide/topics/ui/layout/gridview.jd b/docs/html/guide/topics/ui/layout/gridview.jd
index 13467ae17245b..4ed6ff55efa31 100644
--- a/docs/html/guide/topics/ui/layout/gridview.jd
+++ b/docs/html/guide/topics/ui/layout/gridview.jd
@@ -81,7 +81,7 @@ public void onCreate(Bundle savedInstanceState) {
After the {@code main.xml} layout is set for the content view, the
{@link android.widget.GridView} is captured from the layout with {@link
android.app.Activity#findViewById(int)}. The {@link
-android.widget.GridView#setAdapter(T) setAdapter()} method then sets a custom adapter ({@code
+android.widget.AdapterView#setAdapter(T) setAdapter()} method then sets a custom adapter ({@code
ImageAdapter}) as the source for all items to be displayed in the grid. The {@code ImageAdapter} is
created in the next step.
To do something when an item in the grid is clicked, the {@link
@@ -170,7 +170,7 @@ the height and width for the View—this ensures that, no matter the size of
image is resized and cropped to fit in these dimensions, as appropriate.
<menu> element in order to create a submenu.
<group>You can add a submenu to an item in any menu (except a submenu) by adding a {@code <menu>} -element as the child of an {@code <item>}. Submenus are useful when your application has a lot +
You can add a submenu to an item in any menu (except a submenu) by adding a {@code