android 在java代码中获取本地图片的代码

String myJpgPath =“/storage/emulated/0/Pictures/Screenshots/329150184.jpg”;// 头像地址
Log.v(TAG, myJpgPath);
File file = new File(myJpgPath);
if (file.exists()) {
Bitmap bm = BitmapFactory.decodeFile(myJpgPath);
headimage.setImageBitmap(bm);
} else {
Log.v(TAG, " File Not Found!");
}

**

还有没有其他的方法 代码**

Picasso.with(context).load("file://"+"/storage/emulated/0/Pictures/Screenshots/329150184.jpg").into(headimage);

666 我在 做类似 qq 分组 的 用上面点击分组的没有用保错 我以为不会好了 没想到 这个有用