The application saves bitmap. Here is the code to save them
public Save(Bitmap bitmap,String folder) { /*создаем имя файла*/ editName(); OutputStream os = null; String folderToSave = Environment.getExternalStoragePublicDirectory( Environment.DIRECTORY_PICTURES).toString()+folder; if(folder.equals(Main2Activity.FOLD_TEMP)) { Main2Activity.tempPathBitmap.add(folderToSave +"/"+name); } /*проверяем есть ли папка в которую идет сохраненме * если ее нет метод ее создает*/ createDir(folderToSave); File file = new File(folderToSave,name); try { os = new FileOutputStream(file); bitmap.compress(Bitmap.CompressFormat.PNG, 85, os); os.flush(); os.close(); }catch (Exception e){ e.printStackTrace(); } } public static void createDir(String path){ File file = new File(path); if(!file.exists()){ file.mkdirs(); } } In android-4 and android-5 everything works, but in android-6 does not want. And yes, in the manifesto I wrote:
uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>