I am desiging an android program to change LatLng of images. Images Uri is in an Array the code is as follows
Exception that occurs says
"ExifInterface does not support saving attributes for the currrent input"
InputStream in = getContentResolver().openInputStream((Uri)AddArray[i]);
ExifInterface ei = new ExifInterface(in);
ei.setAttribute(TAG_GPS_LATITUDE, "80/1,35/1,4091/100");
ei.setAttribute(TAG_GPS_LATITUDE_REF, "N");
ei.setAttribute(TAG_GPS_LONGITUDE, "45/1,1/1,4390/100");
ei.setAttribute(TAG_GPS_LONGITUDE_REF, "E");
try {
ei.saveAttributes();
} catch (Exception e) {
Toast.makeText(getApplicationContext(), e.getMessage().toString(), Toast.LENGTH_LONG).show();
}
} catch (IOException e) {
Toast.makeText(getApplicationContext(), "Something went wrong" + e.getMessage(), Toast.LENGTH_LONG).show();
}