10.从SDCard中获取图片:
- /** * @param imagePath 图片在SDCard中保存的路径
- * @return 返回保存的bitmap对象 */
- public static Bitmap getImageFromLocal(String imagePath) { File file = new File(imagePath);
- if (file.exists()) { Bitmap bitmap = BitmapFactory.decodeFile(imagePath);
- file.setLastModified(System.currentTimeMillis()); return bitmap;
- } return null;
- }










