Android lost file issue

by tommy.hong » Thu, 19 May 2011 22:34:56 GMT

Sponsored Links
I have support U disk in my android2.1,but when android boot with udisk
insert in slot,if some files in udisk,will rmdir automatically by Android.

"D/        ( 1015): unable to rmdir -tommy-debug-0519'/udisk/test': Is a
directory (errno=21)"
LOGD("unable to rmdir -tommy-debug-0519'%s': %s (errno=%d)\n")

what's going on in this background?

Hope you can reply me ,thanks!


our psychological growth is the movement from dependence to independence  to


Other Threads

1. Error Parsing XML for drawable

I am facing a problem
I want my application to pick up resources from the framework. Here is
my code snippet of an xml.

 <item android:state_enabled="true"
        android:drawable="?android:attr/theme_btn_minus_ss" />

For this to be achieved following changes were made in attrs.xml

<attr name = "theme_btn_minus_ss"                format= "reference"/

and themes.xml at the framework level

<item name="theme_btn_minus_ss">@android:drawable/btn_minus_ss</

The drawable btn_minus_ss.png is added to drawable-hdpi folder at the
location framework/base/core/res/res/drawable-hdpi
Whenever I open the application, it crashes.
I get the following error in logs

 ERROR/AndroidRuntime(3701): Caused by:
org.xmlpull.v1.XmlPullParserException: Binary XML file line #5: <item>
tag requires a 'drawable' attribute or child tag defining a drawable

However, when I use this


I don't get any error. I want to use
What is the cause and how can this problem be solved.

Thanks & Regards


2. Camera enabled app force closing on some phones

I'm seeing sporadic errors on my app regarding the camera itself.  I
tested on nexus one (2.2), mytouch 3g (1.6) without issue, i'm using
the 1.6 API to support older phones so I lose features in the new API,
but I still can't figure out what is causing these crashes.  Users
report it force closes when trying to take a picture...I see the
following crash reports:
java.lang.RuntimeException: Fail to connect to camera service
at android.hardware.Camera.native_setup(Native Method)
at android.hardware.Camera.<init>(
at android.view.SurfaceView.updateWindow(
at android.view.SurfaceView.dispatchDraw(
at android.view.ViewGroup.drawChild(
at android.view.ViewGroup.dispatchDraw(
at android.view.View.draw(
at android.widget.FrameLayout.draw(
at android.view.ViewGroup.drawChild(
at android.view.ViewGroup.dispatchDraw(
at android.view.View.draw(
at android.widget.FrameLayout.draw(
at android.view.ViewRoot.draw(
at android.view.ViewRoot.performTraversals(
at android.view.ViewRoot.handleMessage(
at android.os.Handler.dispatchMessage(
at android.os.Looper.loop(
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(
at dalvik.system.NativeStart.main(Native Method)

Anyone have any ideas? I have the correct permissions in the right
spot in manifest and my code for the camera is based off the example
given on the dev site. Specifically it is crashing here :
try {
                        camera_ =;

could it be that the camera is already open somehow? if so how could I
handle this so it doesn't force close? Thanks!


3. No LogCat message when debugging on a real device

4. get data for Maps

5. Blinking is showed when switching between View and GLSurfaceView on TabActivity

6. Saving Simplistic Android Widget Across Restarts

7. Pre-process headers/data in browser application