public void save(Bitmap bitmap) throws IOException
{
String path=Environment.getExternalStorageDirectory().getAbsolutePath()+"/map/"+getCurrentDateTimeComplete()+"map.jpg";
String name="sdcard/"+String.valueOf(System.currentTimeMillis())+".jpg";
File file=new File(name);
FileOutputStream fos=new FileOutputStream(file);
bitmap.compress(Bitmap.CompressFormat.JPEG,100,fos);
fos.close();
}
把bitmap单位生成jpg文件,然后用adb shell 去pull 文件
转自:https://www.jianshu.com/p/f026952220db