Bitmap bitmap = BitmapFactory.decodeFile(filePath); imageView.setImageBitmap(bitmap); //缓存到一级缓存(分线程) cacheMap.put(imagePath, bitmap); //缓存到二级缓存(分线程) // /storage/sdcard/Android/data/packageName/files/ String filesPath = context.getExternalFilesDir(null).getAbsolutePath(); // http://192.168.10.165:8080//L05_Web/images/f10.jpg String fileName = imagePath.substring(imagePath.lastIndexOf("/")+1);// f10.jpg String filePath = filesPath+"/"+fileName; bitmap.compress(CompressFormat.JPEG, 100, new FileOutputStream(filePath));