Android 如何将ExiFinInterface设置为缩略图?

Android 如何将ExiFinInterface设置为缩略图?,android,android-image,Android,Android Image,我有一个图像和一个缩略图。我希望将缩略图的ExifInterface设置为与图像的ExifInterface相同。我使用此代码,但它不起作用: ExifInterface of = new ExifInterface(lastFile); int orientation = of.getAttributeInt( ExifInterface.TAG_ORIENTATION, 0); //orientation=6 ExifInterface exifi = new ExifInterface(s

我有一个图像和一个缩略图。我希望将缩略图的
ExifInterface
设置为与图像的
ExifInterface
相同。我使用此代码,但它不起作用:

ExifInterface of = new ExifInterface(lastFile);
int orientation = of.getAttributeInt(
ExifInterface.TAG_ORIENTATION, 0); //orientation=6
ExifInterface exifi = new ExifInterface(strFileThumnail);
// exifi.getAttributeInt(ExifInterface.TAG_ORIENTATION, 0) =0 
exifi.setAttribute(ExifInterface.TAG_ORIENTATION,String.valueOf(orientation));
exifi.saveAttributes();
// exifi.getAttributeInt(ExifInterface.TAG_ORIENTATION, 0) =6 
设置后,我使用此代码获取信息:

exifi = new ExifInterface(strFileThumnail);
// result still : exifi.getAttributeInt(ExifInterface.TAG_ORIENTATION, 0) =0 
如何将
ExifInterface
设置为缩略图