[android-developers] Re: java.io.FileNotFoundException: (Device or resource busy)
Hi, Make sure you are closing the file properly. See - http://android-developers.blogspot.com.au/2010/12/saving-data-safely.html http://stackoverflow.com/questions/4707664/ext4-fsync-situation-unclear-in-android-java Regards On Monday, August 12, 2013 4:50:50 PM UTC+10, rahul kaushik wrote: > > From my webview ,i download the file in particular folder X at > mnt/sdcard/download/X i download the file ,after showing it to the user i > delete the files from folder X while doing this process for 1-2 time i get > the error > > "*java.io.FileNotFoundException: (Device or resource busy)*" > > Please suggest > > Thanks > > RK > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: java.io.FileNotFoundException: (Device or resource busy)
similar problem for me! I extract one zip file. This is done fine. When I delete extracted directory and want to extract another file, it throw same error! On 9 kvě, 19:00, faah wrote: > Can someone tell me how to handle "Device or resource busy" error? Or > how to fix it? > > On May 6, 2:51 pm, faah wrote: > > > > > > > > > On the 3.0 honeycomb, I am getting this error when trying to access a > > file. It does not happen all the time. What causes is that I browse > > around the market a bit and then i come back to my app. It tries to > > access a file, and i get this error: > > > Exception caught in com.app.android.activities.Preview$DLTask: /mnt/ > > sdcard/tmp/1304702202502.jpg (Device orresourcebusy) > > java.io.FileNotFoundException: /mnt/sdcard/tmp/1304702202502.jpg > > (Device orresourcebusy) > > at org.apache.harmony.luni.platform.OSFileSystem.open(Native Method) > > at dalvik.system.BlockGuard$WrappedFileSystem.open(BlockGuard.java: > > 239) > > at java.io.FileOutputStream.(FileOutputStream.java:101) > > at java.io.FileOutputStream.(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 get the same code working again after I restart the device, i.e. > > power off/on. > > > The same code works fine on the android version 7, but at times it > > crashes on v11. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: java.io.FileNotFoundException: (Device or resource busy)
Can someone tell me how to handle "Device or resource busy" error? Or how to fix it? On May 6, 2:51 pm, faah wrote: > On the 3.0 honeycomb, I am getting this error when trying to access a > file. It does not happen all the time. What causes is that I browse > around the market a bit and then i come back to my app. It tries to > access a file, and i get this error: > > Exception caught in com.app.android.activities.Preview$DLTask: /mnt/ > sdcard/tmp/1304702202502.jpg (Device orresourcebusy) > java.io.FileNotFoundException: /mnt/sdcard/tmp/1304702202502.jpg > (Device orresourcebusy) > at org.apache.harmony.luni.platform.OSFileSystem.open(Native Method) > at dalvik.system.BlockGuard$WrappedFileSystem.open(BlockGuard.java: > 239) > at java.io.FileOutputStream.(FileOutputStream.java:101) > at java.io.FileOutputStream.(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 get the same code working again after I restart the device, i.e. > power off/on. > > The same code works fine on the android version 7, but at times it > crashes on v11. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en