android - Write to directory seen when connecting to PC -
i've got little android app written friend (nothing complex, extracts data phone csv) works fine, except output file gets written directory returned getexternalfilesdir()
, rather deep in file system average user hold of.
when plug phone laptop/pc via usb, mounts external drive. there way app write directory?
thanks
when plug phone laptop/pc via usb, mounts external drive. there way app write directory?
yes, insofar environment.getexternalstoragedirectory()
. equivalent of saying "i going write c:
drive" on windows. dominant approach in 1996, came our senses , stopped cluttering root of drive files.
a middle ground option put file in 1 of environment.getexternalstoragepublicdirectory()
locations, such directory_downloads
(if minsdkversion
8 or higher) or directory_documents
(if minsdkversion
19 or higher).
Comments
Post a Comment