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. On-the-fly decryption of large files

Hi everyone!

My app stores large files that need to be decrypted on-the-fly.
FileDescriptors for accessing the decrypted files are retrieved from
ContentProvider.openFile(). The plan;

0) openFile() called, passed URI of file.
1) URI mapped to path of encrypted file.
2) Create a CipherInputStream that reads from the encrypted file.
3) Create a pipe via ParcelFileDescriptor.createPipe().
4) Start a worker thread that reads the CipherInputStream into the
5) Return the read side of pipe to the caller of openFile().
6) Caller can read decrypted file at their leisure.

This hides all cryptography from the caller and ensures that the hard
work is not done on the main thread.

However, createPipe is new in API Level 9 and I need my app to run on
API Level 8. How can I alter my plan to work on the required API




2. Android activity forces close.

I am working on a game app for my granddaughter. It has several
activities. I was working on the hangman game activity and decided to
add some animation. Afterward, I find the activity forces closed. I
have it defined in the androidmanifest.xml file. I even reverted to a
prior version of the activity that was working fine, but it still
forces close. Note the line that has the comment  "// Crashes here." I
have a breakpoint set at that line, but execution stops at this point.

Any advice is appreciated. Source code for game menu activity shown

package com.AE.HollySpelling;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class GameMenu extends ListActivity  {
        /** Called when the activity is first created. */
        String[] items={"Spelling test",
        Intent intent = getIntent();

    public void onCreate(Bundle savedInstanceState) {
        setListAdapter(new ArrayAdapter<String>(this,
        Intent intent = getIntent();
    public void onListItemClick(ListView parent, View v,
                int position, long id) {

                        case 0:
                                intent = new Intent(v.getContext(),
                                        startActivityForResult(intent, 0);
                case 2:
                        intent = new Intent(v.getContext(),
                                startActivityForResult(intent, 0); // Crashes 
                case 3:


3. mysterious crash accessing Preferences - works if package name is changed

4. Refreshing running activity from a background service

5. Need to buy 15 Nexus One Unlocked

6. Unable to get RILD/RILC or hardware level logs

7. [WTShare] Desire DATA2SD, unlimited internal storage and moro I/O