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 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 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