android-capture

Do all Android phones with a built-in camera use a folder called “DCIM” to store captured images?

你。 提交于 2019-12-12 01:28:37
问题 I am developing an app which uses the phone's default camera application to capture an image and then allow the user to perform some basic editing. I use the following snippet... Intentintent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); imageCaptureIntent.putExtra(MediaStore.EXTRA_OUTPUT,*<file>*); startActivityForResult(intent, TAKE_PHOTO_CODE); I want the image captured to be saved in a location that is consistent with the stock camera application. Can I use the DCIM folder and assume all

How to resume android camera preview after onPictureTaken function?

血红的双手。 提交于 2019-12-10 13:43:02
问题 I am developing an app that take pictures from camera object and save it to the sdcard. It works great except some things.(I cant config some parameters for example resolution). But when I take picture it freeze on the screen. I just want to resume the preview and capturing same way after I take picture. here is the full code : http://bahacanaydin.blogspot.com/2012/05/package-com.html 回答1: You have to put mCamera.startPreview(); inside your onPictureTaken() function to restart preview again,

Android: Enable/Disable Camera programmatically

删除回忆录丶 提交于 2019-12-05 08:41:58
问题 I want to enable/disable camera programmatically in my application. 回答1: You cannot do this from a regular app. You can do it from a device administrator, but the user has to explicitly enable it and it is only available on ICS. Here's the reference: http://developer.android.com/guide/topics/admin/device-admin.html 回答2: The OP is asking for any ideas, I got one idea and it could possibly work even without using the API provided by ICS. for lower API version than ICS, you can Start a service

How to move image captured with the phone camera from one activity to an image view in another activity?

主宰稳场 提交于 2019-11-29 15:16:14
The first activity has a button which when clicked, opens the inbuilt camera. Now when the picture is taken, a new activity opens with the image captured in an imageView and a share button in the next activity. I have set up the activity to open after the image is taken, however I am unable to transfer image captured across activities. Please i need help or a nudge in the right direction. The first activity which takes the picture is Takepicture.java : import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import android.graphics.Bitmap; import

How to move image captured with the phone camera from one activity to an image view in another activity?

风格不统一 提交于 2019-11-28 09:15:42
问题 The first activity has a button which when clicked, opens the inbuilt camera. Now when the picture is taken, a new activity opens with the image captured in an imageView and a share button in the next activity. I have set up the activity to open after the image is taken, however I am unable to transfer image captured across activities. Please i need help or a nudge in the right direction. The first activity which takes the picture is Takepicture.java : import android.app.Activity; import

Android - Capture photo

人盡茶涼 提交于 2019-11-26 22:56:18
问题 In my application, i have to implement native camera activity where i have to launch the camera and take photo. In detail, my application containing, One TextView (at top) to display activity name and one Button (At bottom) and in Middle Area of the screen, Camera preview should be viewed..When user click on that Button, Snaps should be clicked and display it into Imageview of another activity. I know that the following approach is used: Intent intent = new Intent(android.provider.MediaStore