Re: [android-developers] Re: How can i access the /data/data//files/my_file.txt on a real android device

2010-09-17 Thread Dianne Hackborn
On Fri, Sep 17, 2010 at 8:50 AM, DanH wrote: > Yes, the file system on Android is SQL-centric to a fault. > Wha? The file systems are FAT on the SD card and typically YAFFS on internal storage (but may be other Unix file systems like ext4). These have nothing to do with SQL at all. For the or

Re: [android-developers] Re: How can i access the /data/data//files/my_file.txt on a real android device

2010-09-17 Thread Kostya Vasilyev
Application-private data storage location can be queried by Context.getFilesDir. Alternatively, one can use Context.getFileStreamPath or Context.openFileOutput. These APIs are there for a reason, so it's good idea to use them. BTW, application- and user- specific storage locations have been

[android-developers] Re: How can i access the /data/data//files/my_file.txt on a real android device

2010-09-17 Thread DanH
Yes, the file system on Android is SQL-centric to a fault. On Sep 17, 10:41 am, john brown wrote: > Linda, > > I am new to Android. I had my app on a Microsoft phone and used .txt > files for data storage. It seemed like a good idea on the Microsoft > smartphone and it worked. > > I did the same

[android-developers] Re: How can i access the /data/data//files/my_file.txt on a real android device

2010-09-17 Thread john brown
Linda, I am new to Android. I had my app on a Microsoft phone and used .txt files for data storage. It seemed like a good idea on the Microsoft smartphone and it worked. I did the same with my app on the Android and found that unexpected things happen with text files on the Android. Things like t

[android-developers] Re: How can i access the /data/data//files/my_file.txt on a real android device

2010-09-17 Thread Chris Stratton
You do not have permission to browse a listing (read) of the /data directory, but you do have permission to access it contents (execute for a directory). And you may have the r permission on the directories and files your app creates. So if you use something that lets you type in the full path, s

[android-developers] Re: How can i access the /data/data//files/my_file.txt on a real android device

2010-09-17 Thread Rutton
>From my unix/linux knowledge, I have to correct this: $ adb shell ls -ls /sdcard/bash_profile 32 -rwxrwxr-x1 1000 1015 157 Sep 15 14:13 /sdcard/ bash_profile - type of file is file - its empty for normal files, d for directory and some other values (see man ls) the leftmost "

[android-developers] Re: How can i access the /data/data//files/my_file.txt on a real android device

2010-09-17 Thread Rutton
>From my unix/linux knowledge, I have to correct this: $ adb shell ls -ls /sdcard/bash_profile 32 -rwxrwxr-x1 1000 1015 157 Sep 15 14:13 /sdcard/ bash_profile - type of file is right - its empty for normal files, d for directory and the leftmost "rwx" is permission of owner (r

[android-developers] Re: How can i access the /data/data//files/my_file.txt on a real android device

2010-09-17 Thread KANTESH BABANNAVAR
d- type of file rwx - permissions for root rwx - permissions for group --x - permissions for you/your app As per this your cant operate with the file I think. On Sep 17, 2:10 pm, Lidia wrote: > Hello to all, > > I wrote a file o the phone from my application in the following path: > /data/d