I have application which require synchronize operation with SD card,USB DRIVE,Dropbox. I successfully implemented Dropbox sync but got stuck while doing it with SD Card and USB.When i try to retrieve external storage path it always return internal memory path.How should i point to SD Card path if SD card present.
Asked
Active
Viewed 135 times
2
-
Any Suggestion or link help needed – Lalit Jadiya Aug 15 '15 at 06:59
-
What brand phone/tablet are you trying to work with? – Steven_BDawg Aug 19 '15 at 19:29
-
The reason I ask is because some brands, like specifically Samsung, do not allow write access to third-party apps. That's why if you're dealing with Samsung devices, `getExternalStorageDirectory()` simply redirects to internal storage. – Steven_BDawg Aug 19 '15 at 20:06
-
Thanks,But i want to code independent of phone manufacturer means it should general so that it would work on all phones – Lalit Jadiya Aug 20 '15 at 04:42
-
Right, but what I'm saying is, you can't. If you want to include all phones, you HAVE to code something up special for some brands like specifically Samsung. It's just like what people used to (maybe still do) for AJAX calls in web browsers. For AJAX, depending on the browser, you had to handle the initialization differently. Basically, if Samsung, or some other company, maps the external storage directory to something internal, there's nothing you can do about it that without writing special code for that case. http://stackoverflow.com/q/5694933/1316483 has more info too. – Steven_BDawg Aug 20 '15 at 12:57