Sorry if this issues has been addressed, I could not find it through search. :sign0104:
I am developing code on a Nexus 7 (no external SD card). My application should write some data to a text file that can later be read on a Windows PC via USB for processing.
My code:
On the Nexus, I can use "File Manager" app to find and read Data.txt saved in 5(!) different but identical locations:
In Windows, with the Nexus set to "Portable Media Player" mode, I can see the same directory structure as contained in the above 5 directories, but Data.txt is not present. If I create a new folder in this directory on Windows, it is created in all 5 locations above.
So far, the only solutions I have found are:
1. e-mail the file
2. set Nexus as FTP
3. root Nexus and use a program such as "Android Commander"
These are not ideal for my application
Is what I'm trying to do possible?
I am developing code on a Nexus 7 (no external SD card). My application should write some data to a text file that can later be read on a Windows PC via USB for processing.
My code:
B4X:
Dim Writer As TextWriter
log(File.DirRootExternal) '/storage/emulated/0
Writer.Initialize(File.OpenOutput(File.DirRootExternal, "Data.txt", True))
Writer.WriteLine("data")
Writer.Close
On the Nexus, I can use "File Manager" app to find and read Data.txt saved in 5(!) different but identical locations:
B4X:
/storage/sdcard0
/storage/emulated/0
/storage/emulated/legacy
/mnt/sdcard
/sdcard
In Windows, with the Nexus set to "Portable Media Player" mode, I can see the same directory structure as contained in the above 5 directories, but Data.txt is not present. If I create a new folder in this directory on Windows, it is created in all 5 locations above.
So far, the only solutions I have found are:
1. e-mail the file
2. set Nexus as FTP
3. root Nexus and use a program such as "Android Commander"
These are not ideal for my application
Is what I'm trying to do possible?