Android device or resource busy - cellular

On honeycombs 3.0, I get this error when trying to access a file. This does not always happen. What are the reasons that I browse the market a bit and then return to my application. It tries to access the file, and I get this error:

Exception caught in com.app.android.activities.Preview$DLTask: /mnt/sdcard/tmp/1304702202502.jpg (Device or resource busy)
java.io.FileNotFoundException: /mnt/sdcard/tmp/1304702202502.jpg (Device or resource busy)
at org.apache.harmony.luni.platform.OSFileSystem.open(Native Method)
at dalvik.system.BlockGuard$WrappedFileSystem.open(BlockGuard.java:239)
at java.io.FileOutputStream.<init>(FileOutputStream.java:101)
at java.io.FileOutputStream.<init>(FileOutputStream.java:77)
at com.app.android.activities.Preview$DLTask.doInBackground(Preview.java:200)
at com.app.android.activities.Preview$DLTask.doInBackground(Preview.java:1)
at com.app.android.activities.appAsyncTask$2.call(appAsyncTask.java:176)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
at java.util.concurrent.FutureTask.run(FutureTask.java:137)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1081)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:574)
at java.lang.Thread.run(Thread.java:1020)

To run the same code again after restarting the device, i.e. off / on.

The same code works fine on Android version 7, but sometimes it crashes on v11.

+3
source share
3 answers

I had the same problem that came out of nowhere: the built-in SD card replied "Device or resource busy." I tried almost everything. A cold reboot was the only thing that helped.

+3
source

, USB .

+1

I realized that the problem is with the folder, not the file. Therefore, when you work, I just create a new tmp folder in my application folder and try to save the file.

0
source

All Articles