¡@

Home 

2014/10/16 ¤W¤È 08:11:02

android Programming Glossary: camera

Android, How to manage start activity for result?

http://stackoverflow.com/questions/10407159/android-how-to-manage-start-activity-for-result

I'm checking some features of handset such as does it have camera if it doesn't have then I'll close this activity. Also during.. happens then I'll close this activity. If it device has camera and recording is done completely then after recording video..

Android ACTION_IMAGE_CAPTURE Intent

http://stackoverflow.com/questions/1910608/android-action-image-capture-intent

Intent We are trying to use the native camera app to let the user take a new picture. It works just fine if.. everything works until you try to hit the Ok button in the camera app. The Ok button just does nothing. The camera app stays open.. in the camera app. The Ok button just does nothing. The camera app stays open and nothing locks up. We can cancel out of it..

How to send image via MMS in Android?

http://stackoverflow.com/questions/2972845/how-to-send-image-via-mms-in-android

application. I am capturing one image through the camera and want to send that image with a text to some other number...

Strange out of memory issue while loading an image to a Bitmap object

http://stackoverflow.com/questions/477572/strange-out-of-memory-issue-while-loading-an-image-to-a-bitmap-object

have had to build my own tabs because of an issue with the camera layout. The activity that gets launched for result is a map... fly. So I just resized the image that came off the phone camera. The issue is that I get an out of memory error when it tries..

Capture Image from Camera and Display in Activity

http://stackoverflow.com/questions/5991319/capture-image-from-camera-and-display-in-activity

I want to write a module where on a click of a button the camera opens and I can click and capture an image. If I don't like.. and display that image in the activity. android image camera capture share improve this question Here's an example activity.. question Here's an example activity that will launch the camera app and then retrieve the image and display it. package edu.gvsu.cis.masl.camerademo..

How turn on camera flash light programmatically in Android?

http://stackoverflow.com/questions/6068803/how-turn-on-camera-flash-light-programmatically-in-android

turn on camera flash light programmatically in Android I want to turn on only.. programmatically in Android I want to turn on only the camera flash light not with camera preview programmatically in Android... I want to turn on only the camera flash light not with camera preview programmatically in Android. I googled for it but the..

Android Camera without Preview

http://stackoverflow.com/questions/2386025/android-camera-without-preview

Camera without Preview I am writing an android 1.5 application which..

Android camera intent

http://stackoverflow.com/questions/2729267/android-camera-intent

How to open “front camera” on android platform?

http://stackoverflow.com/questions/2779002/how-to-open-front-camera-on-android-platform

android camera share improve this question private Camera openFrontFacingCameraGingerbread int cameraCount 0 Camera cam.. improve this question private Camera openFrontFacingCameraGingerbread int cameraCount 0 Camera cam null Camera.CameraInfo.. Camera openFrontFacingCameraGingerbread int cameraCount 0 Camera cam null Camera.CameraInfo cameraInfo new Camera.CameraInfo..

How to draw an overlay on a SurfaceView used by Camera on Android?

http://stackoverflow.com/questions/2933882/how-to-draw-an-overlay-on-a-surfaceview-used-by-camera-on-android

to draw an overlay on a SurfaceView used by Camera on Android I have a simple program that draws the preview of.. I have a simple program that draws the preview of the Camera into a SurfaceView . What I'm trying to do is using the onPreviewFrame.. SurfaceHolder.Callback SurfaceHolder mHolder public Camera camera Superficie Context context super context mHolder getHolder..

How to capture an image and store it with the native Android Camera

http://stackoverflow.com/questions/3442462/how-to-capture-an-image-and-store-it-with-the-native-android-camera

to capture an image and store it with the native Android Camera I am having a problem capturing an image and storing it from..

Android - Camera preview is sideways

http://stackoverflow.com/questions/3841122/android-camera-preview-is-sideways

Camera preview is sideways I am using a Preview to display what the.. see here but can be overcome by using the call to mCamera.setDisplayOrientation degrees available in API 8. So this is.. int format int width int height if isPreviewRunning mCamera.stopPreview Parameters parameters mCamera.getParameters Display..

Allow user to select camera or gallery for image

http://stackoverflow.com/questions/4455558/allow-user-to-select-camera-or-gallery-for-image

expected but the only options are Gallery and Files....no Camera . Is there a better easier way to do this that I'm missing Thanks..

How to set Android camera orientation properly?

http://stackoverflow.com/questions/4645960/how-to-set-android-camera-orientation-properly

public void surfaceCreated SurfaceHolder holder initCamera private Size getOptimalPreviewSize List Size sizes int w int.. SurfaceHolder holder int format int width int height Camera.Parameters parameters camera.getParameters List Size sizes parameters.getSupportedPreviewSizes.. improve this question From other member and my problem Camera Rotation issue depend on different Devices and certain Version...

Trying to attach a file from SD Card to email

http://stackoverflow.com/questions/587917/trying-to-attach-a-file-from-sd-card-to-email

Intent.EXTRA_STREAM Uri.parse file sdcard dcim Camera filename.jpg sendIntent.putExtra Intent.EXTRA_TEXT Enjoy the..

Capture Image from Camera and Display in Activity

http://stackoverflow.com/questions/5991319/capture-image-from-camera-and-display-in-activity

Image from Camera and Display in Activity I want to write a module where on a.. import android.widget.ImageView public class MyCameraActivity extends Activity private static final int CAMERA_REQUEST..

How turn on camera flash light programmatically in Android?

http://stackoverflow.com/questions/6068803/how-turn-on-camera-flash-light-programmatically-in-android

description @string permdesc_flashlight Then make use of Camera and set Camera.Parameters . The main parameter used here is.. permdesc_flashlight Then make use of Camera and set Camera.Parameters . The main parameter used here is FLASH_MODE_TORCH.. . eg. Code Snippet to turn on camera flash light. Camera cam Camera.open Parameters p cam.getParameters p.setFlashMode..

Deleting a gallery image after camera intent photo taken

http://stackoverflow.com/questions/6390163/deleting-a-gallery-image-after-camera-intent-photo-taken

the default gallery image file that shows under the folder Camera will not delete. I would like the image to delete once the activity.. SD card under Coupon2. Any suggestions public void startCamera Log.d ANDRO_CAMERA Starting camera on the phone... mManufacturerText.. Now I call an intent to take a photo. public void startCamera Intent intent new Intent MediaStore.ACTION_IMAGE_CAPTURE Specify..

Images taken with ACTION_IMAGE_CAPTURE always returns 1 for ExifInterface.TAG_ORIENTATION on some newer devices

http://stackoverflow.com/questions/8450539/images-taken-with-action-image-capture-always-returns-1-for-exifinterface-tag-or

to find exif orientations like the answer in this question Camera orientation problem in android Also note that ExifInterface..

How to post sdcard image into facebook wall using graph api [duplicate]

http://stackoverflow.com/questions/13743702/how-to-post-sdcard-image-into-facebook-wall-using-graph-api

cr getContentResolver try SET THE IMAGE FROM THE CAMERA TO THE IMAGEVIEW bmpImageCamera android.provider.MediaStore.Images.Media.getBitmap..

Upload an Image from camera or gallery in WebView

http://stackoverflow.com/questions/15725814/upload-an-image-from-camera-or-gallery-in-webview

option which shows status No file chosen . ON SELECTING CAMERA ON TAKING SNAPSHOT USING CAMERA back and check options appear... file chosen . ON SELECTING CAMERA ON TAKING SNAPSHOT USING CAMERA back and check options appear. ON CHOOSING CHECK MARK FILE IS..

How to intercept a hard key pressed in a service?

http://stackoverflow.com/questions/3356325/how-to-intercept-a-hard-key-pressed-in-a-service

besides the currently active application. Only the CAMERA button event can be detected via its broadcast Intent . The.. can be detected via its broadcast Intent . The ACTION_CAMERA_BUTTON is broadcast when the CAMERA button is pressed and is.. Intent . The ACTION_CAMERA_BUTTON is broadcast when the CAMERA button is pressed and is not intercepted by the foreground activity..

Creating RTP Packets from Android Camera to Send

http://stackoverflow.com/questions/7332532/creating-rtp-packets-from-android-camera-to-send

holder camera.startPreview catch IOException e Log.d CAMERA e.getMessage I'm still wondering where i have to put address..

How to save image captured with camera in specific folder

http://stackoverflow.com/questions/8402378/how-to-save-image-captured-with-camera-in-specific-folder

or upper I added to manifest WRITE_EXTERNAL STORAGE and CAMERA privileges. android share improve this question It's probably..

Android, How to manage start activity for result?

http://stackoverflow.com/questions/10407159/android-how-to-manage-start-activity-for-result

from main activity I call second one in this activity I'm checking some features of handset such as does it have camera if it doesn't have then I'll close this activity. Also during preparation of MediaRecorder or MediaPlayer if problem happens.. during preparation of MediaRecorder or MediaPlayer if problem happens then I'll close this activity. If it device has camera and recording is done completely then after recording video if user clicks on done button then I'll send result address..

Android ACTION_IMAGE_CAPTURE Intent

http://stackoverflow.com/questions/1910608/android-action-image-capture-intent

ACTION_IMAGE_CAPTURE Intent We are trying to use the native camera app to let the user take a new picture. It works just fine if we leave out the EXTRA_OUTPUT extra and returns the small.. putExtra EXTRA_OUTPUT ... on the intent before starting it everything works until you try to hit the Ok button in the camera app. The Ok button just does nothing. The camera app stays open and nothing locks up. We can cancel out of it but the file.. it everything works until you try to hit the Ok button in the camera app. The Ok button just does nothing. The camera app stays open and nothing locks up. We can cancel out of it but the file never gets written. What exactly do we have to..

How to send image via MMS in Android?

http://stackoverflow.com/questions/2972845/how-to-send-image-via-mms-in-android

to send image via MMS in Android I am working on a multimedia application. I am capturing one image through the camera and want to send that image with a text to some other number. But I am not getting how to send the image via the MMS. android..

Strange out of memory issue while loading an image to a Bitmap object

http://stackoverflow.com/questions/477572/strange-out-of-memory-issue-while-loading-an-image-to-a-bitmap-object

When you click the list row it launches a new activity. I have had to build my own tabs because of an issue with the camera layout. The activity that gets launched for result is a map. If I click on my button to launch the image preview load an.. bit size not pixel as the src for the image button on the fly. So I just resized the image that came off the phone camera. The issue is that I get an out of memory error when it tries to go back and re launch the 2nd activity. Is there a way..

Capture Image from Camera and Display in Activity

http://stackoverflow.com/questions/5991319/capture-image-from-camera-and-display-in-activity

Image from Camera and Display in Activity I want to write a module where on a click of a button the camera opens and I can click and capture an image. If I don't like the image I can delete it and click one more image and then.. more image and then select the image and it should return back and display that image in the activity. android image camera capture share improve this question Here's an example activity that will launch the camera app and then retrieve the.. activity. android image camera capture share improve this question Here's an example activity that will launch the camera app and then retrieve the image and display it. package edu.gvsu.cis.masl.camerademo import android.app.Activity import..

How turn on camera flash light programmatically in Android?

http://stackoverflow.com/questions/6068803/how-turn-on-camera-flash-light-programmatically-in-android

turn on camera flash light programmatically in Android I want to turn on only the camera flash light not with camera preview programmatically.. turn on camera flash light programmatically in Android I want to turn on only the camera flash light not with camera preview programmatically in Android. I googled for it but the help i found referred me to this.. turn on camera flash light programmatically in Android I want to turn on only the camera flash light not with camera preview programmatically in Android. I googled for it but the help i found referred me to this page Does anyone have any..

Android Camera without Preview

http://stackoverflow.com/questions/2386025/android-camera-without-preview

Camera without Preview I am writing an android 1.5 application which starts just after boot up. This is a service and should take..

Android camera intent

http://stackoverflow.com/questions/2729267/android-camera-intent

How to open “front camera” on android platform?

http://stackoverflow.com/questions/2779002/how-to-open-front-camera-on-android-platform

there is no reference to use 2 cams Any idea how samsung did.. android camera share improve this question private Camera openFrontFacingCameraGingerbread int cameraCount 0 Camera cam null Camera.CameraInfo cameraInfo new Camera.CameraInfo cameraCount.. to use 2 cams Any idea how samsung did.. android camera share improve this question private Camera openFrontFacingCameraGingerbread int cameraCount 0 Camera cam null Camera.CameraInfo cameraInfo new Camera.CameraInfo cameraCount Camera.getNumberOfCameras.. android camera share improve this question private Camera openFrontFacingCameraGingerbread int cameraCount 0 Camera cam null Camera.CameraInfo cameraInfo new Camera.CameraInfo cameraCount Camera.getNumberOfCameras for int camIdx 0 camIdx..

How to draw an overlay on a SurfaceView used by Camera on Android?

http://stackoverflow.com/questions/2933882/how-to-draw-an-overlay-on-a-surfaceview-used-by-camera-on-android

to draw an overlay on a SurfaceView used by Camera on Android I have a simple program that draws the preview of the Camera into a SurfaceView . What I'm trying to do is using.. to draw an overlay on a SurfaceView used by Camera on Android I have a simple program that draws the preview of the Camera into a SurfaceView . What I'm trying to do is using the onPreviewFrame method which is invoked each time a new frame is.. I have public class Superficie extends SurfaceView implements SurfaceHolder.Callback SurfaceHolder mHolder public Camera camera Superficie Context context super context mHolder getHolder mHolder.addCallback this mHolder.setType SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS..

How to capture an image and store it with the native Android Camera

http://stackoverflow.com/questions/3442462/how-to-capture-an-image-and-store-it-with-the-native-android-camera

to capture an image and store it with the native Android Camera I am having a problem capturing an image and storing it from the native camera app. Here is a sample of some of my code...

Android - Camera preview is sideways

http://stackoverflow.com/questions/3841122/android-camera-preview-is-sideways

Camera preview is sideways I am using a Preview to display what the camera see's on the screen. I can get everything working fine.. This issue appeared to start out as a bug with certain hardware see here but can be overcome by using the call to mCamera.setDisplayOrientation degrees available in API 8. So this is how I implement it public void surfaceChanged SurfaceHolder.. I implement it public void surfaceChanged SurfaceHolder holder int format int width int height if isPreviewRunning mCamera.stopPreview Parameters parameters mCamera.getParameters Display display WindowManager getSystemService WINDOW_SERVICE .getDefaultDisplay..

Allow user to select camera or gallery for image

http://stackoverflow.com/questions/4455558/allow-user-to-select-camera-or-gallery-for-image

appears I can only add one EXTRA_INTENT. The menu show up as expected but the only options are Gallery and Files....no Camera . Is there a better easier way to do this that I'm missing Thanks for any help. android share improve this question ..

How to set Android camera orientation properly?

http://stackoverflow.com/questions/4645960/how-to-set-android-camera-orientation-properly

holder camera.stopPreview camera.release camera null @Override public void surfaceCreated SurfaceHolder holder initCamera private Size getOptimalPreviewSize List Size sizes int w int h final double ASPECT_TOLERANCE 0.2 double targetRatio double.. return optimalSize @Override public void surfaceChanged SurfaceHolder holder int format int width int height Camera.Parameters parameters camera.getParameters List Size sizes parameters.getSupportedPreviewSizes Size optimalSize getOptimalPreviewSize.. android camera orientation surfaceview share improve this question From other member and my problem Camera Rotation issue depend on different Devices and certain Version. Version 1.6 to fix the Rotation Issue and it is good for..

Trying to attach a file from SD Card to email

http://stackoverflow.com/questions/587917/trying-to-attach-a-file-from-sd-card-to-email

jpeg sendIntent.putExtra Intent.EXTRA_SUBJECT Photo sendIntent.putExtra Intent.EXTRA_STREAM Uri.parse file sdcard dcim Camera filename.jpg sendIntent.putExtra Intent.EXTRA_TEXT Enjoy the photo startActivity Intent.createChooser sendIntent Email So..

Capture Image from Camera and Display in Activity

http://stackoverflow.com/questions/5991319/capture-image-from-camera-and-display-in-activity

Image from Camera and Display in Activity I want to write a module where on a click of a button the camera opens and I can click and capture.. android.os.Bundle import android.view.View import android.widget.Button import android.widget.ImageView public class MyCameraActivity extends Activity private static final int CAMERA_REQUEST 1888 private ImageView imageView @Override public void..

How turn on camera flash light programmatically in Android?

http://stackoverflow.com/questions/6068803/how-turn-on-camera-flash-light-programmatically-in-android

normal android label @string permlab_flashlight android description @string permdesc_flashlight Then make use of Camera and set Camera.Parameters . The main parameter used here is FLASH_MODE_TORCH . eg. Code Snippet to turn on camera flash.. label @string permlab_flashlight android description @string permdesc_flashlight Then make use of Camera and set Camera.Parameters . The main parameter used here is FLASH_MODE_TORCH . eg. Code Snippet to turn on camera flash light. Camera cam.. Camera.Parameters . The main parameter used here is FLASH_MODE_TORCH . eg. Code Snippet to turn on camera flash light. Camera cam Camera.open Parameters p cam.getParameters p.setFlashMode Parameters.FLASH_MODE_TORCH cam.setParameters p cam.startPreview..

Deleting a gallery image after camera intent photo taken

http://stackoverflow.com/questions/6390163/deleting-a-gallery-image-after-camera-intent-photo-taken

the SD card correctly and I can delete that file fine but the default gallery image file that shows under the folder Camera will not delete. I would like the image to delete once the activity is returned since the file is already stored on the.. activity is returned since the file is already stored on the SD card under Coupon2. Any suggestions public void startCamera Log.d ANDRO_CAMERA Starting camera on the phone... mManufacturerText EditText findViewById R.id.manufacturer String ManufacturerText.. new File sFilePath CurrentUri Uri.fromFile CurrentFile Now I call an intent to take a photo. public void startCamera Intent intent new Intent MediaStore.ACTION_IMAGE_CAPTURE Specify the output. This will be unique. setsFilePath getTempFileString..

Images taken with ACTION_IMAGE_CAPTURE always returns 1 for ExifInterface.TAG_ORIENTATION on some newer devices

http://stackoverflow.com/questions/8450539/images-taken-with-action-image-capture-always-returns-1-for-exifinterface-tag-or

filePath You can easily find out how to find exif orientations like the answer in this question Camera orientation problem in android Also note that ExifInterface is only supported after Api level 5.. So if you want to support..

How to post sdcard image into facebook wall using graph api [duplicate]

http://stackoverflow.com/questions/13743702/how-to-post-sdcard-image-into-facebook-wall-using-graph-api

getContentResolver .notifyChange targetURI null ContentResolver cr getContentResolver try SET THE IMAGE FROM THE CAMERA TO THE IMAGEVIEW bmpImageCamera android.provider.MediaStore.Images.Media.getBitmap cr targetURI SET THE IMAGE FROM THE GALLERY..

Upload an Image from camera or gallery in WebView

http://stackoverflow.com/questions/15725814/upload-an-image-from-camera-or-gallery-in-webview

a picture using camera it is not uploaded in the choose file option which shows status No file chosen . ON SELECTING CAMERA ON TAKING SNAPSHOT USING CAMERA back and check options appear. ON CHOOSING CHECK MARK FILE IS NOT UPLOADED IN CHOOSE FILE.. uploaded in the choose file option which shows status No file chosen . ON SELECTING CAMERA ON TAKING SNAPSHOT USING CAMERA back and check options appear. ON CHOOSING CHECK MARK FILE IS NOT UPLOADED IN CHOOSE FILE OPTION WHAT IS EXPECTED I checked..

How to intercept a hard key pressed in a service?

http://stackoverflow.com/questions/3356325/how-to-intercept-a-hard-key-pressed-in-a-service

way to listen for the key events of the hardware keys from anything besides the currently active application. Only the CAMERA button event can be detected via its broadcast Intent . The ACTION_CAMERA_BUTTON is broadcast when the CAMERA button is.. the currently active application. Only the CAMERA button event can be detected via its broadcast Intent . The ACTION_CAMERA_BUTTON is broadcast when the CAMERA button is pressed and is not intercepted by the foreground activity developer.android.com.. Only the CAMERA button event can be detected via its broadcast Intent . The ACTION_CAMERA_BUTTON is broadcast when the CAMERA button is pressed and is not intercepted by the foreground activity developer.android.com reference android content a This..

Creating RTP Packets from Android Camera to Send

http://stackoverflow.com/questions/7332532/creating-rtp-packets-from-android-camera-to-send

Toast.LENGTH_SHORT .show camera.setPreviewDisplay holder camera.startPreview catch IOException e Log.d CAMERA e.getMessage I'm still wondering where i have to put address and port information. I know the code belove still need correction..

How to save image captured with camera in specific folder

http://stackoverflow.com/questions/8402378/how-to-save-image-captured-with-camera-in-specific-folder

folder it needs to work on every model phone with Froyo or upper I added to manifest WRITE_EXTERNAL STORAGE and CAMERA privileges. android share improve this question It's probably because you never created the folder try this File imagesFolder..