Code example for ExifInterface

Methods: getThumbnail

0
 
            return imageView;
        } 
 
        private Bitmap showThumbnail(ExifInterface exifInterface) {
            byte[] data = exifInterface.getThumbnail();
 
            if (null == data) {
                return null; 
            } 
 
            return BitmapFactory.decodeByteArray(data, 0, data.length);
        } 
 
        private void showExif(ExifInterface ei) {
            // API 5 
            String exifString = getExifString(ei, ExifInterface.TAG_DATETIME)
                    + "\n"; 
            exifString += getExifString(ei, ExifInterface.TAG_FLASH) + "\n";
            exifString += getExifString(ei, ExifInterface.TAG_GPS_LATITUDE)
                    + "\n";