private static Uri updateImage(Uri imageUri,ContentResolver resolver,String title,long date,Location location,int orientation,int jpegLength,String path,int width,int height,String mimeType){
  ContentValues values=getContentValuesForData(title,date,location,orientation,jpegLength,path,width,height,mimeType);
  Uri resultUri=imageUri;
  if (Storage.isSessionUri(imageUri)) {
    resultUri=addImageToMediaStore(resolver,title,date,location,orientation,jpegLength,path,width,height,mimeType);
    sSessionsToContentUris.put(imageUri,resultUri);
    sContentUrisToSessions.put(resultUri,imageUri);
  }
 else {
    resolver.update(imageUri,values,null,null);
  }
  return resultUri;
}

private static Uri updateImage ( Uri imageUri , ContentResolver resolver , String title , long date , Location location , int orientation , int jpegLength , String path , int width , int height , String mimeType ) { ContentValues values = getContentValuesForData ( title , date , location , orientation , jpegLength , path , width , height , mimeType ) ; Uri resultUri = imageUri ; if ( Storage . isSessionUri ( imageUri ) ) { resultUri = addImageToMediaStore ( resolver , title , date , location , orientation , jpegLength , path , width , height , mimeType ) ; sSessionsToContentUris . put ( imageUri , resultUri ) ; sContentUrisToSessions . put ( resultUri , imageUri ) ; } else { resolver . update ( imageUri , values , null , null ) ; } return resultUri ; }
updates the image values in mediastore .
