android - Unable to see my files in SD card -


i have created text files in sd card, unable view files.

i using path environment.getexternalstoragedirectory(); create files.

i not getting exception while creating files.

when open ddms in eclipse unable see files there also..

if created files @

environment.getexternalstoragepublicdirectory(environment.directory_pictures); 

then can see files @ /data folder of device , not in sd card itself.

when click on gallery icon in device, can see pictures, videos, camera shots folders not files ..

please suggest proper way of creating files in sd card. thanks.

environment.getexternalstoragedirectory() doesn't return location external card. on android tablets (android 3.0+) directory mounted in internal memory.

from docs:

note: don't confused word "external" here. directory can better thought media/shared storage. filesystem can hold relatively large amount of data , shared across applications (does not enforce permissions). traditionally sd card, may implemented built-in storage in device distinct protected internal storage , can mounted filesystem on computer.

afaik there no generic way determine mountpoint of sdcard, specified device manufacturer. example asus transformer mounts external cards in /removable/microsd , /removable/sd . "external storage" directory /sdcard/ mounted in internal space.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -