Home | History | Annotate | Download | only in camera

Lines Matching full:preview

18       <li><a href="#camera-preview">Create the Camera Preview</a></li>
20 <li><a href="#TaskOrientation">Set the Preview Orientation</a></li>
22 <li><a href="#TaskRestartPreview">Restart the Preview</a></li>
23 <li><a href="#TaskReleaseCamera">Stop the Preview and Release the Camera</a></li>
87 <h2 id="camera-preview">Create the Camera Preview</h2>
89 <p>Taking a picture usually requires that your users see a preview of their subject before clicking
93 <h3 id="TaskSetPreview">Preview Class</h3>
95 <p>To get started with displaying a preview, you need preview class. The
96 preview requires an implementation of the {@code
101 class Preview extends ViewGroup implements SurfaceHolder.Callback {
106 Preview(Context context) {
122 <p>The preview class must be passed to the {@link android.hardware.Camera} object before the live
123 image preview can be started, as shown in the next section.</p>
126 <h3 id="TaskStartPreview">Set and Start the Preview</h2>
128 <p>A camera instance and its related preview must be created in a specific
133 camera. The preview must also be restarted in the preview class {@code
156 Important: Call startPreview() to start updating the preview surface. Preview must
168 level to exposure compensation. This example changes only the preview size;
174 // the preview.
181 Important: Call startPreview() to start updating the preview surface. Preview must be
189 <h2 id="TaskOrientation">Set the Preview Orientation</h2>
195 how the preview is displayed without affecting how the image is recorded. However, in Android prior
196 to API level 14, you must stop your preview before changing the orientation and then restart it.</p>
202 method to take a picture once the preview is started. You can create {@link
210 something in between, you can capture only selected preview frames, or set up a
215 <h2 id="TaskRestartPreview">Restart the Preview</h2>
217 <p>After a picture is taken, you must restart the preview before the user
239 <h2 id="TaskReleaseCamera">Stop the Preview and Release the Camera</h2>
245 <p>When should you stop the preview and release the camera? Well, having your
246 preview surface destroyed is a pretty good hint that it?s time to stop the
247 preview and release the camera, as shown in these methods from the {@code
248 Preview} class.</p>
252 // Surface will be destroyed when we return, so stop the preview.
255 Call stopPreview() to stop updating the preview surface.
268 Call stopPreview() to stop updating the preview surface.
286 preview.</p>