From 7f877069274c94b373478a8d0c969c9cfd93864f Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 30 Jul 2009 17:00:34 -0700 Subject: [PATCH] Fix all typos (found by script) in the Android documentation. I haven't touched instances of "behaviour", "dequeue", "removeable", "resizeable", or "removeable" because all are accepted variant spellings and I don't know what the policy is on such things. --- docs/html/guide/appendix/app-intents.jd | 2 +- docs/html/guide/appendix/faq/commontasks.jd | 6 +++--- docs/html/guide/appendix/g-app-intents.jd | 2 +- docs/html/guide/appendix/glossary.jd | 2 +- docs/html/guide/developing/eclipse-adt.jd | 4 ++-- docs/html/guide/developing/other-ide.jd | 4 ++-- docs/html/guide/developing/tools/adb.jd | 2 +- docs/html/guide/developing/tools/adt.jd | 4 ++-- docs/html/guide/developing/tools/draw9patch.jd | 2 +- docs/html/guide/developing/tools/emulator.jd | 4 ++-- .../guide/practices/design/responsiveness.jd | 2 +- .../ui_guidelines/activity_task_design.jd | 8 ++++---- .../practices/ui_guidelines/widget_design.jd | 2 +- docs/html/guide/publishing/versioning.jd | 4 ++-- docs/html/guide/topics/appwidgets/index.jd | 2 +- docs/html/guide/topics/fundamentals.jd | 2 +- docs/html/guide/topics/graphics/2d-graphics.jd | 16 ++++++++-------- docs/html/guide/topics/graphics/index.jd | 6 +++--- .../guide/topics/manifest/activity-element.jd | 4 ++-- docs/html/guide/topics/manifest/data-element.jd | 2 +- .../topics/manifest/permission-tree-element.jd | 2 +- .../guide/topics/manifest/provider-element.jd | 2 +- .../guide/topics/manifest/receiver-element.jd | 2 +- .../guide/topics/manifest/service-element.jd | 2 +- .../guide/topics/media/jet/jetcreator_manual.jd | 2 +- .../guide/topics/providers/content-providers.jd | 8 ++++---- .../topics/resources/available-resources.jd | 2 +- .../guide/topics/resources/resources-i18n.jd | 2 +- docs/html/guide/topics/ui/binding.jd | 6 +++--- docs/html/guide/topics/ui/custom-components.jd | 4 ++-- docs/html/guide/topics/ui/declaring-layout.jd | 2 +- docs/html/guide/topics/ui/dialogs.jd | 2 +- docs/html/guide/topics/ui/how-android-draws.jd | 4 ++-- docs/html/guide/topics/ui/index.jd | 2 +- docs/html/guide/topics/ui/menus.jd | 8 ++++---- docs/html/guide/topics/ui/notifiers/index.jd | 6 +++--- .../guide/topics/ui/notifiers/notifications.jd | 6 +++--- docs/html/guide/topics/ui/notifiers/toasts.jd | 2 +- docs/html/guide/topics/ui/themes.jd | 2 +- docs/html/guide/topics/ui/ui-events.jd | 8 ++++---- docs/html/guide/topics/views/custom-views.jd | 6 +++--- docs/html/guide/tutorials/hello-world.jd | 4 ++-- .../guide/tutorials/views/hello-autocomplete.jd | 2 +- .../guide/tutorials/views/hello-formstuff.jd | 2 +- .../html/guide/tutorials/views/hello-gridview.jd | 2 +- docs/html/guide/tutorials/views/hello-mapview.jd | 4 ++-- .../guide/tutorials/views/hello-tabwidget.jd | 2 +- docs/html/sdk/1.5_r3/installing.jd | 10 +++++----- docs/html/sdk/1.5_r3/upgrading.jd | 6 +++--- docs/html/sdk/RELEASENOTES.jd | 8 ++++---- docs/html/sdk/android-1.5.jd | 2 +- docs/html/sdk/ndk/1.5_r1/index.jd | 2 +- docs/html/videos/index.jd | 6 +++--- 53 files changed, 105 insertions(+), 105 deletions(-) diff --git a/docs/html/guide/appendix/app-intents.jd b/docs/html/guide/appendix/app-intents.jd index 102183bcae046..110196c33ab00 100644 --- a/docs/html/guide/appendix/app-intents.jd +++ b/docs/html/guide/appendix/app-intents.jd @@ -97,7 +97,7 @@ page.title=Reference of Available Intents the fisheye lens effect that would be present if a 90 degree horizontal FOV was used in portrait mode. mapZoomThe map zoom of the map location associated with this panorama. This value is passed on to the - Maps activity when the Street View "Go to Maps" menu item is chosen. It corresponds to the z paramaeter in + Maps activity when the Street View "Go to Maps" menu item is chosen. It corresponds to the z parameter in the geo: intent. diff --git a/docs/html/guide/appendix/faq/commontasks.jd b/docs/html/guide/appendix/faq/commontasks.jd index e88a8672e98a8..c4fc52a5eefda 100644 --- a/docs/html/guide/appendix/faq/commontasks.jd +++ b/docs/html/guide/appendix/faq/commontasks.jd @@ -328,7 +328,7 @@ loopback interface.

The listening classes, called broadcast receivers, extend {@link android.content.BroadcastReceiver BroadcastReceiver}. If you want Android to instantiate the object whenever an appropriate intent notification is sent, define the receiver with a <receiver> element - in the AndroidManifext.xml file. If the caller is expected to instantiate the + in the AndroidManifest.xml file. If the caller is expected to instantiate the object in preparation to receive a message, this is not required. The receiver will get a call to their {@link android.content.BroadcastReceiver#onReceive(android.content.Context,android.content.Intent) BroadcastReceiver.onReceive()} method. A receiver can define an <intent-filter> tag @@ -468,7 +468,7 @@ user receiving new e-mail.

}; -private void IncomingMotherInlawCall(Connection c) { +private void IncomingMotherInLawCall(Connection c) { String Text; // "Answer" callback. @@ -486,7 +486,7 @@ private void IncomingMotherInlawCall(Connection c) { new AlertDialog.Builder(this) .setMessage("Phyllis is calling") .setPositiveButton("Answer", acceptMsg) - .setOnCanceListener(new OnCancelListener() { + .setOnCancelListener(new OnCancelListener() { public void onCancel(DialogInterface dialog) { rejectMsg.sendToTarget(); }}); diff --git a/docs/html/guide/appendix/g-app-intents.jd b/docs/html/guide/appendix/g-app-intents.jd index d4f97c8ee1611..284685974c450 100644 --- a/docs/html/guide/appendix/g-app-intents.jd +++ b/docs/html/guide/appendix/g-app-intents.jd @@ -103,7 +103,7 @@ narrower than in landscape mode. This is done to minimize the fisheye lens effect that would be present if a 90 degree horizontal FOV was used in portrait mode. mapZoomThe map zoom of the map location associated with this panorama. This value is passed on to the - Maps activity when the Street View "Go to Maps" menu item is chosen. It corresponds to the z paramaeter in + Maps activity when the Street View "Go to Maps" menu item is chosen. It corresponds to the z parameter in the geo: intent. diff --git a/docs/html/guide/appendix/glossary.jd b/docs/html/guide/appendix/glossary.jd index ef81631db74b9..97669ba2b679c 100644 --- a/docs/html/guide/appendix/glossary.jd +++ b/docs/html/guide/appendix/glossary.jd @@ -167,7 +167,7 @@ page.title=Glossary
An XML file that each application must define, to describe the application's package name, version, components (activities, intent filters, services), imported libraries, and describes the various - activies, and so on. See The AndroidManifest.xml File for complete information.
diff --git a/docs/html/guide/developing/eclipse-adt.jd b/docs/html/guide/developing/eclipse-adt.jd index a5cf7358500cf..811e61445162e 100644 --- a/docs/html/guide/developing/eclipse-adt.jd +++ b/docs/html/guide/developing/eclipse-adt.jd @@ -27,7 +27,7 @@ applications:

-

There are some other methods that you should be awere of, which are not part of the View class, +

There are some other methods that you should be aware of, which are not part of the View class, but can directly impact the way you're able to handle events. So, when managing more complex events inside a layout, consider these other methods:

    diff --git a/docs/html/guide/topics/views/custom-views.jd b/docs/html/guide/topics/views/custom-views.jd index c5f93466b3b63..4e0e1644f414a 100644 --- a/docs/html/guide/topics/views/custom-views.jd +++ b/docs/html/guide/topics/views/custom-views.jd @@ -151,7 +151,7 @@ custom components, styled text, or anything else you can think of.

    Note: Except for 3D graphics. If you want to use 3D graphics, you must extend {@link android.view.SurfaceView SurfaceView} -instead of View, and draw from a seperate thread. See the +instead of View, and draw from a separate thread. See the GLSurfaceViewActivity sample for details.

    onMeasure() is a little more involved. onMeasure() @@ -171,7 +171,7 @@ result will be an exception at measurement time.

  • The overridden onMeasure() method is called with width and height measure specifications (widthMeasureSpec and - heighMeasureSpec parameters, both are integer codes + heightMeasureSpec parameters, both are integer codes representing dimensions) which should be treated as requirements for the restrictions on the width and height measurements you should produce. A full reference to the kind of restrictions these specifications can require @@ -434,7 +434,7 @@ useful in certain circumstances. If there is a component that is already very similar to what you want, you can simply extend that component and just override the behavior that you want to change. You can do all of the things you would do with a fully customized component, but by starting with a more -specialized class in the View heirarchy, you can also get a lot of behavior for +specialized class in the View hierarchy, you can also get a lot of behavior for free that probably does exactly what you want.

    For example, the SDK includes a NotePad application in the diff --git a/docs/html/guide/tutorials/hello-world.jd b/docs/html/guide/tutorials/hello-world.jd index 79b723d162d6e..9be63bd1c4499 100644 --- a/docs/html/guide/tutorials/hello-world.jd +++ b/docs/html/guide/tutorials/hello-world.jd @@ -478,12 +478,12 @@ particularly powerful with the code-completion features of IDEs like Eclipse because it lets you quickly and interactively locate the specific reference you're looking for.

    -

    It's possible yours looks slighly different than this (perhaps the hexadecimal values are different). +

    It's possible yours looks slightly different than this (perhaps the hexadecimal values are different). For now, notice the inner class named "layout", and its member field "main". The Eclipse plugin noticed the XML layout file named main.xml and generated a class for it here. As you add other resources to your project (such as strings in the res/values/string.xml file or drawables inside -the res/drawable/ direcory) you'll see R.java change to keep up.

    +the res/drawable/ directory) you'll see R.java change to keep up.

    When not using Eclipse, this class file will be generated for you at build time (with the Ant tool).

    You should never edit this file by hand.

    diff --git a/docs/html/guide/tutorials/views/hello-autocomplete.jd b/docs/html/guide/tutorials/views/hello-autocomplete.jd index fba1ad887506b..07235a14ab48b 100644 --- a/docs/html/guide/tutorials/views/hello-autocomplete.jd +++ b/docs/html/guide/tutorials/views/hello-autocomplete.jd @@ -44,7 +44,7 @@ protected void onCreate(Bundle savedInstanceState) { textView.setAdapter(adapter); } -

    Here, we create an AutoComplteteTextView from our layout. We then +

    Here, we create an AutoCompleteTextView from our layout. We then create an {@link android.widget.ArrayAdapter} that binds a simple_dropdown_item_1line layout item to each entry in the COUNTRIES array (which we'll add next). The last part sets the ArrayAdapter to associate with our AutoCompleteTextView.

    diff --git a/docs/html/guide/tutorials/views/hello-formstuff.jd b/docs/html/guide/tutorials/views/hello-formstuff.jd index da4289c16badf..b554001b8bf41 100644 --- a/docs/html/guide/tutorials/views/hello-formstuff.jd +++ b/docs/html/guide/tutorials/views/hello-formstuff.jd @@ -175,7 +175,7 @@ inside a {@link android.widget.RadioGroup}:
  • To do something when each is selected, we'll need an OnClickListener. Unlike the other listeners we've created, instead of creating this one as an anonymous inner class, -we'll create it as a new object. This way, we can re-use the OnClickLIstener for +we'll create it as a new object. This way, we can re-use the OnClickListener for both RadioButtons. So, add the following code in the HelloFormStuff Activity (outside the onCreate() method):
    diff --git a/docs/html/guide/tutorials/views/hello-gridview.jd b/docs/html/guide/tutorials/views/hello-gridview.jd
    index ffb6c93efde57..186c4e7513a60 100644
    --- a/docs/html/guide/tutorials/views/hello-gridview.jd
    +++ b/docs/html/guide/tutorials/views/hello-gridview.jd
    @@ -94,7 +94,7 @@ public class ImageAdapter extends BaseAdapter {
     }
     

    First we take care of some required methods inherited from BaseAdapter. - The constructor and getCount() are self-explanitory. Normally, getItem() + The constructor and getCount() are self-explanatory. Normally, getItem() should return the actual object at the specified position in our Adapter, but for this Hello World, we're not going to bother. Likewise, getItemId() should return the row id of the item, but right now we don't care.

    diff --git a/docs/html/guide/tutorials/views/hello-mapview.jd b/docs/html/guide/tutorials/views/hello-mapview.jd index 531300f22a197..5a4bfcaa2f9e3 100644 --- a/docs/html/guide/tutorials/views/hello-mapview.jd +++ b/docs/html/guide/tutorials/views/hello-mapview.jd @@ -81,7 +81,7 @@ First, we'll create a simple Activity that can view and navigate a map. Then we
  • Now open the HelloMapView.java file. For this Activity, we're going to extend the special sub-class of Activity called MapActivity, so change the class declaration to extend - MapActicity, instead of Activity:

    + MapActivity, instead of Activity:

    public class HelloMapView extends MapActivity {
    @@ -134,7 +134,7 @@ mZoom = (ZoomControls) mapView.getZoomControls();

    By using the ZoomControls object provided by MapView, we don't have to do any of the work required to actually perform the zoom operations. The ZoomControls widget that MapView returns for us is already hooked into the MapView and works as soon as we add it to the - layout. The controls will appear whenever the user touches the map, then dissapear after + layout. The controls will appear whenever the user touches the map, then disappear after a few moments of inactivity.

  • Now just plug our ZoomControls into the LinearLayout we added: diff --git a/docs/html/guide/tutorials/views/hello-tabwidget.jd b/docs/html/guide/tutorials/views/hello-tabwidget.jd index 8424616ca5bba..98dddf539049c 100644 --- a/docs/html/guide/tutorials/views/hello-tabwidget.jd +++ b/docs/html/guide/tutorials/views/hello-tabwidget.jd @@ -53,7 +53,7 @@ tabs to navigate between different views.

    be associated with a different tab. In this case, each tab simply shows a different {@link android.widget.TextView} with some text.

    Notice that the TabWidget and the FrameLayout elements have specific android namespace IDs. These are necessary - so that the TabHost can automatically retireve references to them, populate the TabWidget with the tabs that we'll define + so that the TabHost can automatically retrieve references to them, populate the TabWidget with the tabs that we'll define in our code, and swap the views in the FrameLayout. We've also defined our own IDs for each TextView, which we'll use to associate each tab with the view that it should reveal.

    Of course, you can diff --git a/docs/html/sdk/1.5_r3/installing.jd b/docs/html/sdk/1.5_r3/installing.jd index 8c3e8ee841864..c01dd36c6e638 100644 --- a/docs/html/sdk/1.5_r3/installing.jd +++ b/docs/html/sdk/1.5_r3/installing.jd @@ -95,7 +95,7 @@ the tools included in the SDK (skip to Next Steps).

    Android offers a custom plugin for the Eclipse IDE, called Android Development Tools (ADT), that is designed to give you a powerful, integrated environment in which to build Android applications. It -extends the capabilites of Eclipse to let you quickly set up new Android +extends the capabilities of Eclipse to let you quickly set up new Android projects, create an application UI, add components based on the Android Framework API, debug your applications using the Android SDK tools, and even export signed (or unsigned) APKs in order to distribute your application.

    @@ -125,7 +125,7 @@ and click Next.
  • In the resulting dialog box, enter a name for the remote site (e.g. "Android Plugin") and enter the URL:
    https://dl-ssl.google.com/android/eclipse/
    -

    If you have trouble aqcuiring the plugin, try using "http" in the URL, +

    If you have trouble acquiring the plugin, try using "http" in the URL, instead of "https" (https is preferred for security reasons).

    Click OK.

  • You should now see the new site added to the search list (and checked). @@ -151,7 +151,7 @@ and click Next.
  • Click Add Site...
  • Enter the Location:
    https://dl-ssl.google.com/android/eclipse/
    -

    If you have trouble aqcuiring the plugin, try using "http" in the Location URL, +

    If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).

    Click OK.

  • Back in the Available Software view, you should see the plugin listed by the URL, @@ -217,7 +217,7 @@ follow these steps again instead of the default update instructions.

    Note that there are features of ADT that require some optional Eclipse components (for example, WST). If you encounter an error when -installing ADT, your Eclipse installion might not include these components. +installing ADT, your Eclipse installation might not include these components. For information about how to quickly add the necessary components to your Eclipse installation, see the troubleshooting topic ADT @@ -271,7 +271,7 @@ begin developing applications. Here are a few ways you can get started:

  • Follow the Notepad Tutorial to build a full Android application
  • Create a new project for one of the other sample applications - included in <sdk>/platforms/<platfrom>/samples, + included in <sdk>/platforms/<platform>/samples, then compile and run it in your development environment
diff --git a/docs/html/sdk/1.5_r3/upgrading.jd b/docs/html/sdk/1.5_r3/upgrading.jd index c79b65682a07f..50a8fec2d8d5d 100644 --- a/docs/html/sdk/1.5_r3/upgrading.jd +++ b/docs/html/sdk/1.5_r3/upgrading.jd @@ -174,7 +174,7 @@ uninstall procedure and continue to Install the 0.9 ADT pl
  1. Select Help > Software Updates.
  2. Select the Available Software tab.
  3. -
  4. Expand the entry for the Andriod plugin (may be listed as the location URL) +
  5. Expand the entry for the Android plugin (may be listed as the location URL) and select "Developer Tools" by checking the box next to it, then click Install.
  6. On the next window, "Android DDMS" and "Android Development Tools" @@ -272,7 +272,7 @@ first target ("1"), which uses the Android 1.1 platform library.

    your AIDL Java files will be generated in here. You must remove the old R.java and old auto-generated AIDL java files from the src/ folder. (This -does not apply to your own hand-crafted parcelabe AIDL java files.)

    +does not apply to your own hand-crafted parcelable AIDL java files.)

    Note: The "activitycreator" tool has been replaced by the new "android" tool. For information on creating new projects with the android tool, @@ -368,7 +368,7 @@ if it performs any of the following:

    listens for special keypress events that only occur on a keypad, then your application should degrade gracefully when there is no keyboard available.
  7. -
  8. Performs its own layout orientation changes based on the acceletometer (or via other +
  9. Performs its own layout orientation changes based on the accelerometer (or via other sensors). Some devices running Android 1.5 will automatically rotate the orientation (and all devices have the option to turn on auto-rotation), so if your application also attempts to rotate the orientation, it can result in strange behavior. In addition, if your diff --git a/docs/html/sdk/RELEASENOTES.jd b/docs/html/sdk/RELEASENOTES.jd index 03eeb4bb8ddbe..0fa2d2b58d31b 100644 --- a/docs/html/sdk/RELEASENOTES.jd +++ b/docs/html/sdk/RELEASENOTES.jd @@ -96,7 +96,7 @@ changes include:

    • Multiple versions of the Android platform are included (Android 1.1, Android 1.5). The tools are updated to let you deploy your application -on any platform in the SDK, which helps you ensure forward-compitility and, +on any platform in the SDK, which helps you ensure forward-compatibility and, if applicable, backward-compatibility.
    • Introduces Android Virtual Devices — (AVD) configurations of options that you @@ -107,7 +107,7 @@ that are running concurrently.
    • Android SDK to give you access to one or more external Android libraries and/or a customized (but compliant) system image that can run in the emulator.
    • The new Eclipse ADT plugin (version 0.9.x) offers new Wizards to let you -create projects targetted for specific Android configurations, generate XML +create projects targeted for specific Android configurations, generate XML resources (such as layouts, animations, and menus), generate alternate layouts, and export and sign your application for publishing.
    • Improved JUnit support in ADT
    • @@ -442,9 +442,9 @@ SDK.

      Other Notes

      -

      T-Mobile G1 Compatability

      +

      T-Mobile G1 Compatibility

      -

      This version of the SDK has been tested for compatability with the first +

      This version of the SDK has been tested for compatibility with the first Android-powered mobile device, the T-Mobile G1.

      diff --git a/docs/html/sdk/android-1.5.jd b/docs/html/sdk/android-1.5.jd index 748f3ee4e44b0..ac4890080cfda 100644 --- a/docs/html/sdk/android-1.5.jd +++ b/docs/html/sdk/android-1.5.jd @@ -108,7 +108,7 @@ new APIs introduced since Android 1.0, you can remove the attribute or set it to "1". However, before publishing your application, you must make sure to compile your application against the Android library that corresponds to the application's -android:minSdkVeresion value.

      +android:minSdkVersion value.

      Built-in Applications

      diff --git a/docs/html/sdk/ndk/1.5_r1/index.jd b/docs/html/sdk/ndk/1.5_r1/index.jd index 7ccbbcd4f5ba5..16d543d2efb76 100644 --- a/docs/html/sdk/ndk/1.5_r1/index.jd +++ b/docs/html/sdk/ndk/1.5_r1/index.jd @@ -146,7 +146,7 @@ Applications.

      The sections below describe the system and software requirements for using the Android NDK, as well as platform compatibility considerations that affect -appplications using libraries produced with the NDK.

      +applications using libraries produced with the NDK.

      The Android SDK

        diff --git a/docs/html/videos/index.jd b/docs/html/videos/index.jd index c9c88cfa3d028..34e7005864348 100644 --- a/docs/html/videos/index.jd +++ b/docs/html/videos/index.jd @@ -98,7 +98,7 @@ function renderPlaylist(data) { // Check whether this playlist includes the video title inside the description meta-data, so we can remove it if (playlistsWithTitleInDescription.indexOf(playlistId) != -1) { var lines = fullDescription.split("\n"); - // If the first line includes the first 17 chars from the title, let's use the title from the desciption instead (because it's a more complete title) + // If the first line includes the first 17 chars from the title, let's use the title from the description instead (because it's a more complete title) // This accounts for, literally, "Google I/O 2009 -", which is (so far) the min AND max for properly identifying a title in the only playlist with titles in the description if (lines[0].indexOf(title.slice(0,16)) != -1) { h3Title = "

        " + lines[0] + "

        "; @@ -332,7 +332,7 @@ function clickDefaultVideo() { - \ No newline at end of file +