Android lost file issue

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


Sponsored Links
 Hi,list!
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)"
(./dalvik/libcore/luni/src/main/native/java_io_File.c:
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!

B.R
Tommy


-- 
our psychological growth is the movement from dependence to independence  to
interdependence!

-- 



Other Threads

1. Error Parsing XML for drawable

Hi
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</
item>

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

android:background="?android:attr/theme_btn_minus_ss"

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



Thanks & Regards
Aviral

-- 

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>(Camera.java:118)
at android.hardware.Camera.open(Camera.java:91)
at
com.bluephoenixmedia.mywardrobe.PreviewView.setupCamera(PreviewView.java:
162)
at
com.bluephoenixmedia.mywardrobe.PreviewView.surfaceCreated(PreviewView.java:
86)
at android.view.SurfaceView.updateWindow(SurfaceView.java:540)
at android.view.SurfaceView.dispatchDraw(SurfaceView.java:339)
at android.view.ViewGroup.drawChild(ViewGroup.java:1646)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1375)
at android.view.View.draw(View.java:6742)
at android.widget.FrameLayout.draw(FrameLayout.java:352)
at android.view.ViewGroup.drawChild(ViewGroup.java:1648)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1375)
at android.view.View.draw(View.java:6742)
at android.widget.FrameLayout.draw(FrameLayout.java:352)
at com.android.internal.policy.impl.PhoneWindow
$DecorView.draw(PhoneWindow.java:1872)
at android.view.ViewRoot.draw(ViewRoot.java:1422)
at android.view.ViewRoot.performTraversals(ViewRoot.java:1167)
at android.view.ViewRoot.handleMessage(ViewRoot.java:1744)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:144)
at android.app.ActivityThread.main(ActivityThread.java:4937)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
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_ = Camera.open();
                        camera_.setPreviewDisplay(surfacehldr_);

}
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