English 中文(简体)
MediaStore.ACTION_IMAGE_CAP 问题
原标题:MediaStore.ACTION_IMAGE_CAPTURE problem

我正在使用以下代码来启动违约照相机。 图像得到成功保存。 在开始采用“再就业”方法后,再次采用母体活动方法,并启动所有病例变量。 我希望它能恢复同一种父母的活动。

Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile((new File("/sdcard/","test.jpg")))); 
startActivityForResult(cameraIntent, 0);
最佳回答

安德列斯可以选择杀害和重新开展活动。 你们至少应当得到一个可以坚持你们需要保持的任何国家的希望。 See Actative Life Mill

问题回答

暂无回答




相关问题
Compile Android camera application for sdk 1.6

I am trying to compile and run the Android Camera for sdk 1.6 (also called API level 4 or Donut release). While there is no minSdkVersion in the AndroidManifest, it clearly does not run on a donut ...

Android - Capture photo

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 ...

Camera on Android Eclipse emulator:

I don t have an embedded camera in the lid of my notebook. I d be hooking up through an external USB camera. The emulator runtime can pick this up right? I ll get the image displayed inside the AVD ...

Droid s mediaserver dies on camera.takePicture()

On Motorola Droid, Firmware 2.1-update1, Kernel 2.9.29-omap1, Build # ESE81 When attempting to take a picture, mediaserver dies with a segmentation fault. I ve tried putting takePicture in a timer ...

Taking picture from camera without preview

I am writing an Android 1.5 application which starts just after boot-up. This is a Service and should take a picture without preview. This app will log the light density in some areas whatever. I was ...

Check if device has a camera?

In my app, I d like to use the camera, if the device has one. Are there any devices running android that do not have a camera? By including the following into my manifest: <uses-feature android:...

热门标签