¡@

Home 

2014/10/16 ¤W¤È 08:14:52

android Programming Glossary: iccb

Android : Getting file name from camera?

http://stackoverflow.com/questions/455830/android-getting-file-name-from-camera

new View.OnClickListener public void onClick View view String filename null ImageCaptureCallback iccb null try filename timeStampFormat.format new Date ContentValues values new ContentValues values.put Media.TITLE filename.. Media.DESCRIPTION Image capture by camera Uri uri getContentResolver .insert Media.EXTERNAL_CONTENT_URI values iccb new ImageCaptureCallback getContentResolver .openOutputStream uri catch Exception ex ex.printStackTrace Log.e getClass.. Log.e getClass .getSimpleName ex.getMessage ex camera.takePicture mShutterCallback mPictureCallbackRaw iccb com.froogloid.android.gspot.Park.imageFileName filename It won't use the filename i.e. time date stamp I ask it to. android..

How to bind any image with the captured Camera image before saving it? [duplicate]

http://stackoverflow.com/questions/7763026/how-to-bind-any-image-with-the-captured-camera-image-before-saving-it

Such things. takePhotoBtn.setOnClickListener new OnClickListener public void onClick View v 5 ImageCaptureCallback iccb null try String filename timeStampFormat.format new Date ContentValues values new ContentValues values.put Media.TITLE.. Media.DESCRIPTION Image capture by camera Uri uri getContentResolver .insert Media.EXTERNAL_CONTENT_URI values iccb new ImageCaptureCallback getContentResolver .openOutputStream uri to put the Image on captured image. Canvas canvas new.. Log.e getClass .getSimpleName ex.getMessage ex camera.takePicture mShutterCallback mPictureCallbackRaw iccb Camera.PictureCallback mPictureCallbackRaw new Camera.PictureCallback public void onPictureTaken byte data Camera c Log.e..