Code example for ExifInterface

Methods: saveAttributes, setAttribute

0
            } 
             
            Log.i("PictureDemo", "Saved to " + photo.getAbsolutePath());
             
            try { 
                ExifInterface iff = new ExifInterface(photo.getAbsolutePath());
                iff.setAttribute("Orientation", Float.toString(orientation[0]));
                iff.saveAttributes();
            } catch (IOException e) {
                e.printStackTrace();
            } 
 
            return(null); 
        } 
    } 
     
    public void onStatusChanged(String provider, int status, Bundle extras) {
        if(LocationProvider.AVAILABLE == status) {
            Log.i("PictureDemo", "Satellite fix.");
            Toast 
                .makeText(getContext(), "GPS Fix", Toast.LENGTH_LONG)