Then after image capture intent finished to work - just grab your picture from imageUri using following code: public void grabImage(ImageView imageView) Return File.createTempFile(part, ext, tempDir) TempDir=new File(tempDir.getAbsolutePath()+"/.temp/") Private File createTemporaryFile(String part, String ext) throws Exceptionįile tempDir= Environment.getExternalStorageDirectory() Intent.putExtra(MediaStore.EXTRA_OUTPUT, mImageUri) Īctivity.startActivityForResult(this, intent, MenuShootImage) Toast.makeText(activity, "Please check SD card! Image shot is impossible!", 10000) Log.v(TAG, "Can't create file to take picture!") Photo = this.createTemporaryFile("picture", ".jpg") place where to store camera taken picture To get full sized camera image you should point camera to save picture in temporary file, like: private URI mImageUri
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |