Thanks Dianne.
But, in my java application, I have to copy total internal memory on my
sdcard, how I do it?
Precisely, I want read my contact data, my sms data and my calendar data
(events) and copy all on sdcard.
Can you help me?

2009/5/11 Dianne Hackborn <[email protected]>

> Correct, applications can't read that directory.  They can only read their
> own sub-directiry,
>
>
> On Mon, May 11, 2009 at 8:10 AM, Cecco <[email protected]> wrote:
>
>>
>> Hi,
>> sorry for my english, I'am an italian student.
>> I need help. I have to open, from my application, /data directory, but
>> using the "ls -l" command in adb shell, I read following lines :
>>
>> drwxrwx--x System System      2009-05-08   11:28 data
>>
>> and when I launch this code :
>>
>> File data = new File("/data");
>> if(data.isDirectory()){
>>   Log.v(TAG, "directory");
>> }
>> String []child = data.list();
>> Log.v(TAG, String.valueOf(child.length));
>>
>> I have this output :
>>
>> "directory
>>  0
>> "
>>
>> So my application is not able to read files located into this
>> directory.
>> Somebody can help me?
>>
>>
>>
>
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to