From 7ed189e457b16c06b0425bd28aeeb1df5c8ff5b8 Mon Sep 17 00:00:00 2001 From: Scott Kennedy Date: Fri, 11 Jan 2013 22:31:43 -0800 Subject: [PATCH] docs: Fix a bunch of issues External tracker 42609 External tracker 42607 External tracker 42604 External tracker 42600 External tracker 42574 External tracker 42450 External tracker 41050 External tracker 40995 External tracker 40970 External tracker 40935 External tracker 40507 External tracker 40481 External tracker 40435 External tracker 40406 External tracker 40297 External tracker 40281 External tracker 39978 External tracker 39929 External tracker 39803 External tracker 39715 External tracker 39441 Change-Id: If4215cef850ba8e4e8df356a68192566806e7914 --- core/java/android/app/AlertDialog.java | 2 +- core/java/android/app/admin/DeviceAdminInfo.java | 4 ++-- core/java/android/content/BroadcastReceiver.java | 2 +- .../android/hardware/SensorEventListener.java | 2 +- core/java/android/provider/ContactsContract.java | 3 ++- core/java/android/widget/PopupWindow.java | 2 +- core/res/res/values/attrs.xml | 2 +- docs/html/google/gcm/gcm.jd | 6 +++--- .../google/play/billing/billing_integrate.jd | 16 ++++++++-------- docs/html/google/play/expansion-files.jd | 2 +- docs/html/guide/components/activities.jd | 4 ++-- docs/html/guide/components/bound-services.jd | 4 ++-- docs/html/guide/topics/location/strategies.jd | 4 ++-- .../guide/topics/resources/layout-resource.jd | 4 ++-- .../guide/topics/resources/string-resource.jd | 2 +- docs/html/tools/extras/oem-usb.jd | 2 +- docs/html/tools/testing/testing_ui.jd | 4 ++-- docs/html/training/basics/location/geocoding.jd | 4 ++-- .../in-app-billing/purchase-iab-products.jd | 2 +- .../multiple-threads/create-threadpool.jd | 2 +- docs/html/training/notepad/notepad-ex2.jd | 2 +- 21 files changed, 38 insertions(+), 37 deletions(-) diff --git a/core/java/android/app/AlertDialog.java b/core/java/android/app/AlertDialog.java index 6ab2bd1c2e90c..10d5e253fb901 100644 --- a/core/java/android/app/AlertDialog.java +++ b/core/java/android/app/AlertDialog.java @@ -90,7 +90,7 @@ public class AlertDialog extends Dialog implements DialogInterface { /** * Special theme constant for {@link #AlertDialog(Context, int)}: use - * the device's default alert theme with a dark background. + * the device's default alert theme with a light background. */ public static final int THEME_DEVICE_DEFAULT_LIGHT = 5; diff --git a/core/java/android/app/admin/DeviceAdminInfo.java b/core/java/android/app/admin/DeviceAdminInfo.java index b35181158df8f..66fc816201e71 100644 --- a/core/java/android/app/admin/DeviceAdminInfo.java +++ b/core/java/android/app/admin/DeviceAdminInfo.java @@ -139,9 +139,9 @@ public final class DeviceAdminInfo implements Parcelable { public static final int USES_POLICY_DISABLE_CAMERA = 8; /** - * A type of policy that this device admin can use: disables use of keyguard widgets. + * A type of policy that this device admin can use: disables use of keyguard features. * - *

To control this policy, the device admin must have a "disable-keyguard-widgets" + *

To control this policy, the device admin must have a "disable-keyguard-features" * tag in the "uses-policies" section of its meta-data. */ public static final int USES_POLICY_DISABLE_KEYGUARD_FEATURES = 9; diff --git a/core/java/android/content/BroadcastReceiver.java b/core/java/android/content/BroadcastReceiver.java index 1500b009a3069..4f42d50f36844 100644 --- a/core/java/android/content/BroadcastReceiver.java +++ b/core/java/android/content/BroadcastReceiver.java @@ -117,7 +117,7 @@ import android.util.Slog; * *

-

For more information about implementing and testing accessibility, see Making Applications Accessible.

+

For more information about implementing and testing accessibility, see Making Applications Accessible.

Note: To identify the non-accessible components in the UI, click on the Toggle NAF Nodes option in the {@code uiautomatorviewer} tool.

-

Generally, Android application developers get accessibility support for free, courtesy of the {@link android.view.View} and {@link android.view.ViewGroup} classes. However, some applications use custom view components to provide a richer user experience. Such custom components won't get the accessibility support that is provided by the standard Android UI components. If this applies to your application, ensure that the application developer exposes the custom drawn UI components to Android accessibility services, by implementing the {@link android.view.accessibility.AccessibilityNodeProvider} class. For more information about making custom view components accessible, see Making Applications Accessible.

+

Generally, Android application developers get accessibility support for free, courtesy of the {@link android.view.View} and {@link android.view.ViewGroup} classes. However, some applications use custom view components to provide a richer user experience. Such custom components won't get the accessibility support that is provided by the standard Android UI components. If this applies to your application, ensure that the application developer exposes the custom drawn UI components to Android accessibility services, by implementing the {@link android.view.accessibility.AccessibilityNodeProvider} class. For more information about making custom view components accessible, see Making Applications Accessible.

Configure your development environment

If you're developing in Eclipse, the Android SDK provides additional tools that help you write test cases using {@code uiautomator} and buiild your JAR file. In order to set up Eclipse to assist you, you need to create a project that includes the {@code uiautomator} client library, along with the Android SDK library. To configure Eclipse:

diff --git a/docs/html/training/basics/location/geocoding.jd b/docs/html/training/basics/location/geocoding.jd index 6364976985d24..3192d14fdb9b4 100644 --- a/docs/html/training/basics/location/geocoding.jd +++ b/docs/html/training/basics/location/geocoding.jd @@ -82,7 +82,7 @@ private class ReverseGeocodingTask extends AsyncTask<Location, Void, Void> // Update UI field with the exception. Message.obtain(mHandler, UPDATE_ADDRESS, e.toString()).sendToTarget(); } - if (addresses != null &s;&s; addresses.size() > 0) { + if (addresses != null && addresses.size() > 0) { Address address = addresses.get(0); // Format the first line of address (if available), city, and country name. String addressText = String.format("%s, %s, %s", @@ -95,4 +95,4 @@ private class ReverseGeocodingTask extends AsyncTask<Location, Void, Void> return null; } } - \ No newline at end of file + diff --git a/docs/html/training/in-app-billing/purchase-iab-products.jd b/docs/html/training/in-app-billing/purchase-iab-products.jd index d5f663430d572..7fa77d32e2c1b 100644 --- a/docs/html/training/in-app-billing/purchase-iab-products.jd +++ b/docs/html/training/in-app-billing/purchase-iab-products.jd @@ -65,7 +65,7 @@ IabHelper.OnIabPurchaseFinishedListener mPurchaseFinishedListener else if (purchase.getSku().equals(SKU_GAS)) { // consume the gas and update the UI } - else (purchase.getSku().equals(SKU_PREMIUM)) { + else if (purchase.getSku().equals(SKU_PREMIUM)) { // give user access to premium content and update the UI } } diff --git a/docs/html/training/multiple-threads/create-threadpool.jd b/docs/html/training/multiple-threads/create-threadpool.jd index 4a4ddb1255f8f..e22afd37c2221 100644 --- a/docs/html/training/multiple-threads/create-threadpool.jd +++ b/docs/html/training/multiple-threads/create-threadpool.jd @@ -46,7 +46,7 @@ trainingnavtop=true synchronized block. This approach will prevent one thread from reading the variable while another is writing to it. Typically, this situation arises with static variables, but it also occurs in any object that is only instantiated once. To learn more about this, read the - + Processes and Threads API guide.

diff --git a/docs/html/training/notepad/notepad-ex2.jd b/docs/html/training/notepad/notepad-ex2.jd index 1334d7af85926..895a071a29a29 100644 --- a/docs/html/training/notepad/notepad-ex2.jd +++ b/docs/html/training/notepad/notepad-ex2.jd @@ -100,7 +100,7 @@ public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuIn

Step 3

-

Now that the we've registered our ListView for a context menu and defined our context menu item, we need +

Now that we've registered our ListView for a context menu and defined our context menu item, we need to handle the callback when it is selected. For this, we need to identify the list ID of the selected item, then delete it. So fill in the onContextItemSelected() method like this: