From 6f5b5ee3212c194cd20750af7adb90f938bc8fcd Mon Sep 17 00:00:00 2001 From: Pin Ting Date: Sat, 3 Mar 2012 00:13:32 +0800 Subject: Fix document. Change-Id: I661b259c8438f9290d57fae29a828cf4495ce335 --- docs/html/guide/topics/media/camera.jd | 6 +++--- docs/html/training/camera/cameradirect.jd | 6 +++--- docs/html/training/camera/videobasics.jd | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/html/guide/topics/media/camera.jd b/docs/html/guide/topics/media/camera.jd index 4e928b3..d15668c 100644 --- a/docs/html/guide/topics/media/camera.jd +++ b/docs/html/guide/topics/media/camera.jd @@ -442,7 +442,7 @@ use or does not exist will cause your application to be shut down by the system. the first, back-facing camera on a device with more than one camera.

Checking camera features

-

Once you obtain access to a camera, you can get further information about its capabilties using +

Once you obtain access to a camera, you can get further information about its capabilities using the {@link android.hardware.Camera#getParameters() Camera.getParameters()} method and checking the returned {@link android.hardware.Camera.Parameters} object for supported capabilities. When using API Level 9 or higher, use the {@link android.hardware.Camera#getCameraInfo(int, @@ -677,8 +677,8 @@ button {@link android.view.View.OnClickListener}.

 // Add a listener to the Capture button
 Button captureButton = (Button) findViewById(id.button_capture);
-    captureButton.setOnClickListener(
-        new View.OnClickListener() {
+captureButton.setOnClickListener(
+    new View.OnClickListener() {
         @Override
         public void onClick(View v) {
             // get an image from the camera
diff --git a/docs/html/training/camera/cameradirect.jd b/docs/html/training/camera/cameradirect.jd
index 03ad119..4b6f0d2 100644
--- a/docs/html/training/camera/cameradirect.jd
+++ b/docs/html/training/camera/cameradirect.jd
@@ -35,7 +35,7 @@ previous.link=videobasics.html
 the framework APIs.

Directly controlling a device camera requires a lot more code than requesting pictures or videos -from existing camera applications. However, if you want to build a specialized camera application or +from existing camera applications. However, if you want to build a specialized camera application or something fully integrated in your app UI, this lesson shows you how.

@@ -95,7 +95,7 @@ camera sensor is picking up.

To get started with displaying a preview, you need preview class. The preview requires an implementation of the {@code android.view.SurfaceHolder.Callback} interface, which is used to pass image -data from the camera hardware the application.

+data from the camera hardware to the application.

 class Preview extends ViewGroup implements SurfaceHolder.Callback {
@@ -214,7 +214,7 @@ takePicture()}.

Restart the Preview

-

After a picture is taken, you must to restart the preview before the user +

After a picture is taken, you must restart the preview before the user can take another picture. In this example, the restart is done by overloading the shutter button.

diff --git a/docs/html/training/camera/videobasics.jd b/docs/html/training/camera/videobasics.jd index a3512b0..650e191 100644 --- a/docs/html/training/camera/videobasics.jd +++ b/docs/html/training/camera/videobasics.jd @@ -107,7 +107,7 @@ public static boolean isIntentAvailable(Context context, String action) {

The Android Camera application returns the video in the {@link android.content.Intent} delivered to {@link android.app.Activity#onActivityResult onActivityResult()} as a {@link android.net.Uri} pointing to the video location in storage. The following code -retrieves this image and displays it in a {@link android.widget.VideoView}.

+retrieves this video and displays it in a {@link android.widget.VideoView}.

 private void handleCameraVideo(Intent intent) {
-- 
cgit v1.1