private Bitmap addThumbnailToCache(String imageKey,Bitmap bitmap,String path,int px){
  Bitmap thumbnail=ThumbnailUtils.extractThumbnail(bitmap,px,px);
  thumbnail=BitmapUtils.rotateImage(thumbnail,path);
  addBitmapToCache(imageKey,thumbnail);
  return thumbnail;
}

private Bitmap addThumbnailToCache ( String imageKey , Bitmap bitmap , String path , int px ) { Bitmap thumbnail = ThumbnailUtils . extractThumbnail ( bitmap , px , px ) ; thumbnail = BitmapUtils . rotateImage ( thumbnail , path ) ; addBitmapToCache ( imageKey , thumbnail ) ; return thumbnail ; }
add thumbnail to cache
