From 7ed189e457b16c06b0425bd28aeeb1df5c8ff5b8 Mon Sep 17 00:00:00 2001 From: Scott Kennedy Date: Fri, 11 Jan 2013 22:31:43 -0800 Subject: 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 --- docs/html/google/gcm/gcm.jd | 6 +++--- docs/html/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 ++-- docs/html/guide/topics/resources/layout-resource.jd | 4 ++-- docs/html/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 ++-- .../training/in-app-billing/purchase-iab-products.jd | 2 +- docs/html/training/multiple-threads/create-threadpool.jd | 2 +- docs/html/training/notepad/notepad-ex2.jd | 2 +- 14 files changed, 29 insertions(+), 29 deletions(-) (limited to 'docs/html') diff --git a/docs/html/google/gcm/gcm.jd b/docs/html/google/gcm/gcm.jd index 1762e12..f218bc2 100644 --- a/docs/html/google/gcm/gcm.jd +++ b/docs/html/google/gcm/gcm.jd @@ -208,9 +208,9 @@ ID in a database.

The registration ID lasts until the Android application explicitly unregisters itself, or until Google refreshes the registration ID for your Android application.

-

Note: When users uninstall an application, it is not automatically unregistered on GCM. It is only unregistered when the GCM server tries to send a message to the device and the device answers that the application is uninstalled or it does not have a broadcast receiver configured to receive com.google.android.c2dm.intent.RECEIVE intents. At that point, you server should mark the device as unregistered (the server will receive a NotRegistered error). +

Note: When users uninstall an application, it is not automatically unregistered on GCM. It is only unregistered when the GCM server tries to send a message to the device and the device answers that the application is uninstalled or it does not have a broadcast receiver configured to receive com.google.android.c2dm.intent.RECEIVE intents. At that point, your server should mark the device as unregistered (the server will receive a NotRegistered error).

-Note that it might take a few minutes for the registration ID to be completed removed from the GCM server. So if the 3rd party server sends a message during this time, it will get a valid message ID, even though the message will not be delivered to the device.

+Note that it might take a few minutes for the registration ID to be completely removed from the GCM server. So if the 3rd party server sends a message during this time, it will get a valid message ID, even though the message will not be delivered to the device.

Sending a Message

@@ -593,7 +593,7 @@ have an application server that meets the following criteria:

- \ No newline at end of file + diff --git a/docs/html/guide/topics/resources/string-resource.jd b/docs/html/guide/topics/resources/string-resource.jd index da410a4..27761e2 100644 --- a/docs/html/guide/topics/resources/string-resource.jd +++ b/docs/html/guide/topics/resources/string-resource.jd @@ -177,7 +177,7 @@ ID to reference the array.
<item>
-
A string, which can include styling tags. The value can be a referenced to another +
A string, which can include styling tags. The value can be a reference to another string resource. Must be a child of a {@code <string-array>} element. Beware that you must escape apostrophes and quotation marks. See Formatting and Styling, below, for diff --git a/docs/html/tools/extras/oem-usb.jd b/docs/html/tools/extras/oem-usb.jd index 005ba29..9e3c709 100644 --- a/docs/html/tools/extras/oem-usb.jd +++ b/docs/html/tools/extras/oem-usb.jd @@ -292,7 +292,7 @@ href="http://www.kttech.co.kr/cscenter/download05.asp">http://www.kttech.co.kr/c - Lenevo + Lenovo http://developer.lenovomm.com/developer/download.jsp diff --git a/docs/html/tools/testing/testing_ui.jd b/docs/html/tools/testing/testing_ui.jd index 5289ffa..701415e 100644 --- a/docs/html/tools/testing/testing_ui.jd +++ b/docs/html/tools/testing/testing_ui.jd @@ -141,11 +141,11 @@ If you are connected to only a single device, you do not need to set the ANDROID

-

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 6364976..3192d14 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 d5f6634..7fa77d3 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 4a4ddb1..e22afd3 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 1334d7a..895a071 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:

-- cgit v1.1