android


Using getExternalFilesDir with multi SDCards (Galaxy S3)


With Android 4.4.2 I have have to change Environment.getExternalStorageDirectory() to use context.getExternalFilesDir(null)
This works perfectly fine on 4.4.2 Emulator and my Galaxy S3 but on the Galaxy S3 it is using the internal memory and not the SDCard
I have used (How can I get external SD card path for Android 4.0+?) Answer with 18 to find the SDCard
Is there anywhere round this issue on the Galaxy S3 with combining getExternalFilesDir() and the Galaxy S3
Thanks
This works perfectly fine on 4.4.2 Emulator and my Galaxy S3 but on the Galaxy S3 it is using the internal memory and not the SDCard
It is using external storage on both the emulator and the Galaxy S3. I just completed a blog post series explaining what internal storage, external storage, and removable storage all really mean in Android.
Is there anywhere round this issue on the Galaxy S3 with combining getExternalFilesDir() and the Galaxy S3
You are welcome to use getExternalFilesDirs() (note the plural) on Android 4.4+. If the array has more than one entry, the second and subsequent entries will be on removable media (SD card, USB storage, etc.).

Related Links

getResources().getString() doesn't work after orientation has been changed
What do all the orientation constants of the ExifInterface class in Android mean?
how to remove text drawn from Canvas in android
Android autocomplete textview on click item
How to create the duplicate keystore for android application [duplicate]
How to Use Geopoint? [duplicate]
Overlaying one common fragment helping Other Tab Fragments
Android emulator crashes on launch [closed]
InApp Purchased in Android
How to cancel a foreground service from using the notification (swipe dismiss) or clear all notifications?
SEPARATE THREAD VS SERVICE + SEPARATE THREAD
Error while creating new Android project in Eclipse
MediaPlayer.start() cannot be called in constructor?
I can't stop ProgressDialog with method dismiss();
Android - Throwing fatal exception where it wasn't before
Android onKeyDown not catching Dpad center and enter key presses

Categories

HOME
url-redirection
embedded
socket.io
access
javacc
carousel
telegram-bot
pearson-correlation
arangodb
openstreetmap
octave
ibeacon-android
android-securityexception
why3
x-cart
angular-dart
tput
renjin
3nf
docx
fileserver
video-editing
imessage
cfml
sencha-touch
apache2.4
poedit
jquery-ias
visual-studio-extensions
maze
surveymonkey
pic32
stackexchange
jquery-multiselect
pylons
linked-data
bringtofront
comparable
ntp
corenlp-server
mobx
paragraph
cognos-bi
catch-unit-test
rselenium
watchman
railstutorial.org
chef-solo
smoothstate.js
ntvs
activeperl
context-switch
scalding
wpas
filehandle
reshape
py2neo
reachability
reporting-services-2012
winusb
parfor
watch-os-2
cfchart
mediametadataretriever
ellucian-scribe
findfirst
jnlua
inf
assertion
jdi
eoferror
typeconverter
node-serialport
openbabel
mass-assignment
document-repository
ssis-data-flow
iso-prolog
webfinger
genymotion-call
mdichild
clickbank
high-resolution
scrypt
cocoalibspotify-2.0
cffile
abstract-data-type
joomla-template
http-status-code-410
apache-abdera
asplinkbutton
android-loadermanager
nokia-s40
iboutlet
subgraph
jsr286
apache-commons-dbutils
procedures
role
rmdir
django-paypal
svk
instantiationexception
sifr
fail-fast-fail-early
netbeans6.1

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App