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

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -