I download the file, install it.

After delete. After downloading again, and it turns out that this file supposedly stayed. But I deleted it. What could be the problem? And how to remove it completely?


ByteArrayOutputStream byteArrayOutputStream=new ByteArrayOutputStream(); byteArrayOutputStream.write(HttpRequest.get(str).getResponse().getResponseBytes()); file = getApplicationContext().getExternalFilesDir("Download"); outputFile = new File(file, "app.apk"); FileOutputStream fos = new FileOutputStream(outputFile); fos.write(byteArrayOutputStream.toByteArray()); fos.close(); 
  • one
    So the file was deleted after the fact or not? If not, how do you delete it? - s8am
  • Yes retired. The problem was in the SD card - Andro

0