java.io.IOException: open failed: EBUSY (Device or resource busy)

tip

Check if android.permission.WRITE_EXTERNAL_STORAGE is in AndroidManifest.xml. Also, add checks in your code to see if the storage is available to write before trying to write. And last: create a folder to put your files inside.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • draw image on canvas and save into sd card
    via Stack Overflow by Manish
    ,
  • touchtracer.apk not working
    via GitHub by ciropom
    ,
    • java.io.IOException: open failed: EBUSY (Device or resource busy) at java.io.File.createNewFile(File.java:946) at java.io.File.createTempFile(File.java:1011) at tv.caseguard.swipe.fragment.CameraPhoto.setImageUri(CameraPhoto.java:414) at tv.caseguard.swipe.fragment.CameraPhoto.dispatchTakePhotoIntent(CameraPhoto.java:380) at tv.caseguard.swipe.fragment.CameraPhoto.onClick(CameraPhoto.java:295) at android.view.View.performClick(View.java:4438) at android.view.View$PerformClick.run(View.java:18422) at android.os.Handler.handleCallback(Handler.java:733) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5017) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) at dalvik.system.NativeStart.main(Native Method) Caused by: libcore.io.ErrnoException: open failed: EBUSY (Device or resource busy) at libcore.io.Posix.open(Native Method) at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)

    Users with the same issue

    justCodeit
    justCodeit10 times, last one,
    Indri Yunita
    Indri Yunita1 times, last one,
    ben.slama.jihed
    ben.slama.jihed1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    42 more bugmates