11.04.2011 2:41, bahtiyar kara пишет:
I know that if ı create a file in internal memory, it s saved under /data/data directory.
Is it wrong?

No, that's correct. Just don't hard-code "/data/data/<package>" - rather use Context.openFileInput / openFileOutput / getFilesDir.

and when ı list files in my application, for example ı want to open an image or an mp3 file in internal directory in this folder.
I think ı need to access there? or I think wrong?

An application has access to its own files.

But not to files of other applications. Other applications don't have access to your files either.


What ı want to do:

I want to create some directories and files in android and then
I want to list them a file browser firstly.

Depends on where "some directories and files" are.

What do you should me?
Do you should I need to do them in sd card?

If you need to have files that are visible by other applications, then yes, using the memory card is a simple way to achieve that. Make sure you read this:

http://developer.android.com/guide/topics/data/data-storage.html#filesExternal

-- Kostya


Many thanks for helping...


--
Kostya Vasilyev -- http://kmansoft.wordpress.com

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