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. 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
pipe.
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
level?

Thanks.

Pete.

-- 

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

package com.AE.HollySpelling;

import android.app.ListActivity;
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",
                        "Scramble",
                        "Hangman",
                        "Exit"};
        Intent intent = getIntent();

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.games);
        setListAdapter(new ArrayAdapter<String>(this,
                                R.layout.listrow, R.id.label,
                                items));
        Intent intent = getIntent();
    }
    @Override
    public void onListItemClick(ListView parent, View v,
                int position, long id) {

                switch(position)
                {
                        case 0:
                                intent = new Intent(v.getContext(),
                                        VoiceManager.class);
                                        startActivityForResult(intent, 0);
                                break;
                case 2:
                        intent = new Intent(v.getContext(),
                                        Hangman.class);
                                startActivityForResult(intent, 0); // Crashes 
here.
                        break;
                case 3:
                        finish();
                        break;
                }
    }
}

-- 

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