android-camera-intent

The Camera Intent is simply not working

早过忘川 提交于 2019-12-25 09:00:41
问题 public class CameraintentActivity extends Activity { String _path, sliderpather; Button button; Intent intent; Uri outputFileUri; File file; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); button = (Button)findViewById(R.id.button1); _path = Environment.getExternalStorageDirectory().getName() + File.separatorChar + "make_machine_example.jpg"; file = new File( _path

Change Camera settings from another App's Activity

天大地大妈咪最大 提交于 2019-12-25 05:32:39
问题 I have an Android app that calls the native camera app to take a picture and returns the image for further manipulation. My problem, is that I run into memory leaks if the camera is set to 2(+) megapixels. Ideally, I want it set to the lowest (VGA) since image quality is not a concern with this app. Is there a way from my app to change the settings of the native device's camera app? Here is the code I am using: Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); mImageCaptureUri =

Issue in capture image using camera in lollipop

倾然丶 夕夏残阳落幕 提交于 2019-12-25 03:36:28
问题 I have been searching for the following issue for three days My Code is as following private void openCamera () { try { Intent captureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); String fileName = Constants.IMAGE_CAPTURE_FILE_NAME_PREFIX + System.currentTimeMillis() + Constants.IMAGE_FILE_EXT_JPG; mImageFile = new File(FileManager.getInstance().getFileFullName(Constants.IMAGE_FOLDER, fileName)); captureIntent.putExtra(MediaStore.EXTRA_OUTPUT, mImageFile); startActivityForResult

Issue in capture image using camera in lollipop

删除回忆录丶 提交于 2019-12-25 03:36:05
问题 I have been searching for the following issue for three days My Code is as following private void openCamera () { try { Intent captureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); String fileName = Constants.IMAGE_CAPTURE_FILE_NAME_PREFIX + System.currentTimeMillis() + Constants.IMAGE_FILE_EXT_JPG; mImageFile = new File(FileManager.getInstance().getFileFullName(Constants.IMAGE_FOLDER, fileName)); captureIntent.putExtra(MediaStore.EXTRA_OUTPUT, mImageFile); startActivityForResult

How to Take a Photo with the Camera App And also save as thumbnail and as Full-size Photo (resize & crop customly) in SD Card Two Folders?

前提是你 提交于 2019-12-25 02:47:15
问题 I am new in android development. I want take an image from android camera tool then save as thumbnail and also save as Full-size (Resize & crop user defined). I actually want thumbnail image show in GridView from one folder of SD Card then click one image then show full-size(1536 X 2048) image in one window from another folder of SD Card. I search in google but not get absolute example or tutorial which is match two conditions. For example developer.android.com/training/camera/photobasics

How to Take a Photo with the Camera App And also save as thumbnail and as Full-size Photo (resize & crop customly) in SD Card Two Folders?

蓝咒 提交于 2019-12-25 02:47:02
问题 I am new in android development. I want take an image from android camera tool then save as thumbnail and also save as Full-size (Resize & crop user defined). I actually want thumbnail image show in GridView from one folder of SD Card then click one image then show full-size(1536 X 2048) image in one window from another folder of SD Card. I search in google but not get absolute example or tutorial which is match two conditions. For example developer.android.com/training/camera/photobasics

Getting FileNotFoundException while capturing photo from Camera

谁都会走 提交于 2019-12-25 02:46:09
问题 I am using FileProvider.getUriForFile with given provider_paths.xml file. I am doing something wrong which I am not getting. <?xml version="1.0" encoding="utf-8"?> <paths xmlns:android="http://schemas.android.com/apk/res/android"> <external-path name="StrengGeheim" path="."/> </paths> This I added in my AndroidManifest.xml inside tag: <provider android:name="android.support.v4.content.FileProvider" android:authorities="${applicationId}.provider" android:exported="false" android

Camera activity does not return a result after save

血红的双手。 提交于 2019-12-25 02:43:12
问题 I had a code for taking photos and displaying them on map previously. Even i didn' t change the code related with that part, it doesn't work after installing android 2.3.6. I debugged the code and the code does not go into onActivityResult method. I could not debug the software in other versions rigth now. Can any one help me about the problem. Related code is given below: protected void startCameraActivity() { File fileDirectory = new File(Environment.getExternalStorageDirectory()+ filePath)

Android: Draw image on Camera Preview

故事扮演 提交于 2019-12-25 01:18:06
问题 I want to create a Camera application that draws an image on the camera preview. When the camera is running I want to add an image file (example : image.png) on the camera preview. Here is the code that I have to run the camera, but I don't know the code that adds/draws the image.png Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); mImageCaptureUri = Uri.fromFile(new File(Environment.getExternalStorageDirectory(), "IMG_" + String.valueOf(System.currentTimeMillis()) + ".jpg"));

Proper solution to pick/click an image on Android

半世苍凉 提交于 2019-12-24 06:45:59
问题 As the title suggests, i'm having an option to upload an image in my app. I would like to have two options: Click a new picture & Select from gallery. Gallery selection is working fine on all devices using this code: Intent in = new Intent(); in.setType("image/*"); in.setAction(Intent.ACTION_GET_CONTENT); startActivityForResult(Intent.createChooser(in, getString(R.string.selectpicture)), 100); The problem is with Click a new picture . I want to use other camera apps installed on the device to