if you use lint tools, it will give you warning for hard-coded sdcard directory.
On Monday, April 30, 2012 1:24:56 PM UTC-4, Rahul Vijay wrote: > > > > On Mon, Apr 30, 2012 at 6:03 PM, Mark Murphy <[email protected]>wrote: > >> On Mon, Apr 30, 2012 at 8:26 AM, RLScott <[email protected]> wrote: >> > It has been my experience that >> > Environment.getExternalStorageDirectory() which you mentioned >> > generally points to the built-in kind of external memory. >> >> It points to whatever the device manufacturer chose to point it to. On >> some devices, it is removable; on some devices, it is not. >> >> > So if you >> > want to access the real removable SD card file system there is no way >> > I know of other than hard-wiring the actual path name, or letting the >> > user enter it on a form (assuming the user even knows what the path >> > name is). >> >> Or not using it. >> >> Or waiting for the Android SDK to support multiple "external" mount >> points. >> >> Or waiting for somebody to crowdsource a database of available >> standard mount points and their accessibility (just because /mnt/foo >> exists does not mean you can read or write to it, or that the user can >> access it), and waiting for somebody to create some sort of JAR that >> leverages this crowdsourced database, so you can determine the >> available options for your hardware to present to the user. >> >> > For example, on the Acer Iconia Tablet A-100 there is >> > >> > /mnt/sdcard (built-in "external" memory") >> > /mnt/external_sd (removable SD card) >> >> You will note that neither of these is /sdcard, which was my point to the >> OP. >> >> -- >> Mark Murphy (a Commons Guy) >> http://commonsware.com | http://github.com/commonsguy >> http://commonsware.com/blog | http://twitter.com/commonsguy >> >> Android Training...At Your Office: http://commonsware.com/training >> >> -- >> 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 >> > > Go to vijayvargiyarahul.blogspot.in > Give the example how to reading a file from SD Card > > -- 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

