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. start activity when the application icon is clicked

Hi,

  i was just running a demo application.it runs successfully but my
problem is when ever i run the application from eclipse the emulator
shows me the activity.Instead i wanted to know how can i avoid this
screen to launch automatically.

              only when i should click on the application icon, i
wanted my activity should launch.plz guide me accordingly.

Thanks&regards
preeti

-- 

2. google gdata Calender api problems with android

Hi group,
I trying to use Datepicker widget to select the date and pass to
google gdata api to fetch calender events

private DatePickerDialog.OnDateSetListener mDateSetListener =
            new DatePickerDialog.OnDateSetListener() {

                public void onDateSet(DatePicker view, int year,
                                      int monthOfYear, int dayOfMonth)
{

                    mYear = year;
                    mMonth = monthOfYear+1; // why is that step up is
needed
                    mDay = dayOfMonth;
                    updateDisplay();
                }
            };

private void updateDisplay() {

        StringBuilder status= new StringBuilder(50);
        String y1=String.valueOf(mYear);
        String m1=String.valueOf(mMonth);
        if(m1.length()==1)
        {
                m1="0"+m1;
        }
        String d1=String.valueOf(mDay);
        if(d1.length()==1)
        {
                d1="0"+d1;
        }


        String startdate=y1+"-"+m1+"-"+d1+"T"+"00:00:00";
        //example out put for startdate:2009-02-12T00:00:00
        String enddate=y1+"-"+m1+"-"+d1+"T"+"23:59:59";

        try{
                myQuery.setMinimumStartTime(DateTime.parseDateTime(startdate));
                myQuery.setMaximumStartTime(DateTime.parseDateTime(enddate));;
                Feed resultFeed = myService.query(myQuery, Feed.class);
                for (int i = 0; i < resultFeed.getEntries().size(); i++) {
                          Entry entry =  resultFeed.getEntries().get(i);
                          status.append("\t" + entry.getTitle().getPlainText());

                                                }
           }catch(Exception e){System.out.println(e);}

           mDateDisplay.setText(status);

 }

I will be glad if someone clarifies few points

1. Why is that this step up is needed - > mMonth = monthOfYear+1;
2. DateTime.parseDateTime(String args) takes date format as
2009-02-12T00:00:00 and is there any other simple approach to convert
int values from Datepicker to required format,the one shown above
doesn't work .At present i hard-code  values to make it work ,like
        
myQuery.setMinimumStartTime(DateTime.parseDateTime("2010-02-12T00:00:00"));
        
myQuery.setMaximumStartTime(DateTime.parseDateTime("2010-03-12T23:59:59"));

3. The code works fine(when i hard code the as shown above) for the
very time of execution .when i clicked back button and again tried to
run the app ,resultFeed throws Null pointer exception.

I could appreciate your valuable suggestion to correct my mistakes.

Thanks
ganesh

--

3. Service alarm/Res File - String

4. Clear application data?

5. can't seem to stop my media player in a service..

6. Encoding mechnism in android

7. OnClickListener for Tablelayout created by a database