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

android: receive udp broadcast while devices screen is off
how to update search filelist when using godir in android AOSP?
Firebase Android: handle deep links
`$cookies.put()` takes 30 seconds to save the cookie on disk on Android
Compile ARM binaries, run them in ARMulator
java.lang.IllegalArgumentException: Given String is empty or null when executing Firebase updatePassword() Method
Running LXC on Android
Why is onNext not getting called when using toList?
How to set alarmManager for a specified time
GoogleApiAvailability missed with firebase-messaging:9.4.0
Getting a Floating Action button between two layouts which already has elevation
Clear all List in spinner items
Vector icon not show on Lollipop and above
Is it possible to change theme in each intent in Android Studio?
Sharing text post on Facebook Wall from my application using Facebook Sdk Android
Unable to publish my apk as beta in my ionic application

Categories

HOME
service-worker
xml
porting
delphi-7
webdriver
gpu
rdbms
formal-languages
knitr
cublas
vsm
jquery-ui
boto3
bing-maps
fhir
mautic
emoji
onedrive-api
3nf
cumulocity
libusb
linear-algebra
forgot-password
google-content-api
google-data-studio
sencha-touch
tosca
interpreter
android-sharedpreferences
pylons
apktool
intersystems-cache
failover
vex
ntp
dotspatial
event-flow
simplecv
roblox
alphabetical
tex
health-monitoring
numberpicker
stringtokenizer
apriori
naming
movilizer
placeholder
avcapturedevice
wc
berkeley-db-je
signal-strength
singleinstance
aquamacs
arules
pybrain
baidu
renaming
cubism.js
jodd
ng-grid
hclust
respondcms
cfchart
nservicebus5
php-socket
kiosk
cortex-m
nullable
np-spring
blitline
.bash-profile
zscript
teamcity-9.1
ms-access-2000
cakephp-2.7
mass-assignment
iiop
device-tree
wcm
rmysql
raygun
insight.database
ignite-ui
template-deduction
codeplex
memset
conditionaltagsupport
windows-embedded-standard
visual-studio-express
mysql-error-1044
oocss
asdf
nevron
abstract-data-type
dolby-audio-api
apache-abdera
dopostback
extreme-programming
mkv
midlet
jquery-blockui
rmiregistry
subgraph
garbage
window-decoration
expression-blend-4
xcelsius
event-receiver
rowlex
binomial-heap
silverlight-oob
lemmatization

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