¡@

Home 

2014/10/16 ¤W¤È 08:21:26

android Programming Glossary: photopath

why image captured using camera intent gets rotated on some devices in android

http://stackoverflow.com/questions/14066038/why-image-captured-using-camera-intent-gets-rotated-on-some-devices-in-android

should be viewed in. ExifInterface ei new ExifInterface photoPath int orientation ei.getAttributeInt ExifInterface.TAG_ORIENTATION..

Trouble working with the camera in onActivityResult

http://stackoverflow.com/questions/5279809/trouble-working-with-the-camera-in-onactivityresult

public class photoActivity extends Activity private String photoPath private ImageView imgView ... My camera listener bPicFromCam.setOnClickListener.. state long captureTime System.currentTimeMillis photoPath Environment.getExternalStorageDirectory MYAPP captureTime .jpg.. Then my code to start the camera intent note that the photoPath is correct public void getPicFromCam View view System.out.println..

Reading an image file into bitmap from sdcard?

http://stackoverflow.com/questions/8710515/reading-an-image-file-into-bitmap-from-sdcard

Bitmap bitmap BitmapFactory.decodeFile photoPath options selected_photo.setImageBitmap bitmap or http mihaifonoage.blogspot.com..

why image captured using camera intent gets rotated on some devices in android

http://stackoverflow.com/questions/14066038/why-image-captured-using-camera-intent-gets-rotated-on-some-devices-in-android

populate the EXIF data with the orientation that the photo should be viewed in. ExifInterface ei new ExifInterface photoPath int orientation ei.getAttributeInt ExifInterface.TAG_ORIENTATION ExifInterface.ORIENTATION_NORMAL switch orientation case..

Trouble working with the camera in onActivityResult

http://stackoverflow.com/questions/5279809/trouble-working-with-the-camera-in-onactivityresult

image view after its been saved. Defined my photo location public class photoActivity extends Activity private String photoPath private ImageView imgView ... My camera listener bPicFromCam.setOnClickListener new View.OnClickListener public void onClick.. if Environment.MEDIA_MOUNTED.equals state long captureTime System.currentTimeMillis photoPath Environment.getExternalStorageDirectory MYAPP captureTime .jpg getPicFromCam v else Toast.makeText getApplicationContext.. a picture from your gallery instead. Toast.LENGTH_LONG .show Then my code to start the camera intent note that the photoPath is correct public void getPicFromCam View view System.out.println photoPath photoPath Outputs the CORRECT location try Intent..

Reading an image file into bitmap from sdcard?

http://stackoverflow.com/questions/8710515/reading-an-image-file-into-bitmap-from-sdcard

new BitmapFactory.Options options.inPreferredConfig Bitmap.Config.ARGB_8888 Bitmap bitmap BitmapFactory.decodeFile photoPath options selected_photo.setImageBitmap bitmap or http mihaifonoage.blogspot.com 2009 09 displaying images from sd card in.html..