¡@

Home 

2014/10/16 ¤W¤È 08:25:48

android Programming Glossary: temp_photo_file

how to set the output image use com.android.camera.action.CROP

http://stackoverflow.com/questions/12758425/how-to-set-the-output-image-use-com-android-camera-action-crop

20 If you need to show the selector to the user. Then you can do something like this private static final String TEMP_PHOTO_FILE temporary_holder.jpg Intent photoPickerIntent new Intent Intent.ACTION_PICK android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI.. getTempFile private File getTempFile if isSDCARDMounted File f new File Environment.getExternalStorageDirectory TEMP_PHOTO_FILE try f.createNewFile catch IOException e return f else return null private boolean isSDCARDMounted String status Environment.getExternalStorageState..

How to select and crop an image in android?

http://stackoverflow.com/questions/2085003/how-to-select-and-crop-an-image-in-android

I have also faced this problem .You can try with this code. Its working fine for me private static final String TEMP_PHOTO_FILE temporary_holder.jpg Intent photoPickerIntent new Intent Intent.ACTION_PICK android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI.. .equals Environment.MEDIA_MOUNTED File file new File Environment.getExternalStorageDirectory TEMP_PHOTO_FILE try file.createNewFile catch IOException e return file else return null protected void onActivityResult int requestCode.. if imageReturnedIntent null File tempFile getTempFile String filePath Environment.getExternalStorageDirectory TEMP_PHOTO_FILE System.out.println path filePath Bitmap selectedImage BitmapFactory.decodeFile filePath _image ImageView findViewById..

Emulator's camera built-in app buggy in Froyo / 2.2?

http://stackoverflow.com/questions/2948809/emulators-camera-built-in-app-buggy-in-froyo-2-2

Intent intent new Intent MediaStore.ACTION_IMAGE_CAPTURE intent.putExtra MediaStore.EXTRA_OUTPUT Uri.fromFile new File TEMP_PHOTO_FILE startActivityForResult intent REQUEST_CAMERA This starts the camera app but after a few seconds it crashes. The output is..