Dear Sir,
  Thanks for your reply.

1) Does this means that if i create the folder "raw" inside "res"
folder , put some files in it and in my program give the path to open
and read a file as ""/data/data/mypackage/filename". Will it read the
file from "raw" folder at run time on the device.

2) I mean to say that is the path /res/raw/ equivalent to "/data/data/
mypackage/" folder.

3) I also intend to read/write and create some files at run time in my
internal memory "/data/data/mypackage/" folder. When i do these
operation in my Emulators "/data/data/mypackage/" folder, i don't face
any problem i.e the original files are read and written as well as
some new files are also created. But as you say i will add my files
in /res/raw folder. But will i be able to write in the files present
at raw folder

4) Will it be possible by adding files,subfolders in raw folder OR
will it be possible by adding files , subfolders in the "assets"
folder. will my problem solve by using "assets" folder.

Please help me on this

regards,
Sameer Kamble


On Sep 20, 8:07 pm, Bret Foreman <[email protected]> wrote:
> You can store files in /res/raw. Just create the folder, import the
> files, and they'll get installed with your package. They will be read-
> only, though, so you'll need to move them at runtime if you plan to
> change them. I do this with certain geographical information for
> location based services and it works great.
>
> On Sep 20, 7:08 am, sameer kamble <[email protected]> wrote:
>
> > Dear Sir,
>
> > 1) I am using Eclipse IDE and Android SDK 2.1 for my application. My
> > application reads some data files from the File System, so using DDMS
> > i push all the files in "/data/data/com.mypackage/" folder and run my
> > application on emulator. I am able to see my desired output properly
> > on the emulator.
>
> > 2) Now i have Android device and i don't know how to push the files in
> > the Internal memory of the phone. I have installed driver CD. But it
> > only shows me the SD card directory.
>
> > 3) Actually what i want is that the moment my application is installed
> > and run it should read the data files from the file system. So there
> > should be no added efforts to push the files in the file system.
>
> > 4)Means can i pack my data files with my .apk file and when the apk is
> > getting installed can the data files be placed directly in the
> > internal memory(file system) i.e. "/data/data/com.mypackage/" folder.
> > Is this possible ??
> > if yes can you please tell me how to do it.
>
> >  5) Can you please help me on this issue.
>
> > regards,
> > Sameer Kamble

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