- Home /
Android Write a file to root of SD card
Hi guys,
Ho do I go about writing a file to the root of an SD card on Android? I don't care that it's bad practice etc. I want a path to the root of an SD card(optional: if one is mounted or built-in storage otherwise). So when you connect your device to PC you can see the file in the root folder. I would prefer a call that returns a path rather than hard coding the path itself. I think this can be achieved with JNI stuff but I know too little about java/android to know where to start. A code example would be much appreciated.
Thanks!
Your answer

Follow this Question
Related Questions
How to call an android notification plugin if it's not the main activity? 1 Answer
Is it possible to access a file from the android Internal storage on to a Unity app during run time? 0 Answers
Where is the persistent data path on my Android phone? 3 Answers
CreateJavaRuntime problem 0 Answers
How to load an AssetBundle from sdcard 2 Answers