J Jamsa Member Licensed User Longtime User Feb 9, 2012 #1 I've written a file to the internal storage using this: File.WriteString(File.DirInternal, "Data.txt", strResult) and I read data from it at some other part of my code. All works 100%. I'm not deleting or renaming it, but if I try to find the file using windows explorer, I can't find it! :BangHead: Why is that??
I've written a file to the internal storage using this: File.WriteString(File.DirInternal, "Data.txt", strResult) and I read data from it at some other part of my code. All works 100%. I'm not deleting or renaming it, but if I try to find the file using windows explorer, I can't find it! :BangHead: Why is that??
thedesolatesoul Expert Licensed User Longtime User Feb 9, 2012 #2 Jamsa said: I'm not deleting or renaming it, but if I try to find the file using windows explorer, I can't find it! :BangHead: Click to expand... Because it is in the emulator filesystem, not your windows filesystem. Have a read of: Files - Basic4android Wiki If you feel like it you can open a command prompt in windows(locate the adb.exe file in android sdk/platform-tools) Do: adb -e shell cd /data/<yourpackagename>/files ls cat Data.txt Upvote 0
Jamsa said: I'm not deleting or renaming it, but if I try to find the file using windows explorer, I can't find it! :BangHead: Click to expand... Because it is in the emulator filesystem, not your windows filesystem. Have a read of: Files - Basic4android Wiki If you feel like it you can open a command prompt in windows(locate the adb.exe file in android sdk/platform-tools) Do: adb -e shell cd /data/<yourpackagename>/files ls cat Data.txt
J Jamsa Member Licensed User Longtime User Feb 10, 2012 #3 Aha. Well that explains it. I'm not using the emulator, but real phones I guess I'll have to use File.DirRootExternal and then I can see it. Correct? Upvote 0
Aha. Well that explains it. I'm not using the emulator, but real phones I guess I'll have to use File.DirRootExternal and then I can see it. Correct?
thedesolatesoul Expert Licensed User Longtime User Feb 10, 2012 #4 Yes, if you mount the storage you can see it in windows explorer. Sent from my GT-I9000 using Tapatalk Upvote 0
Yes, if you mount the storage you can see it in windows explorer. Sent from my GT-I9000 using Tapatalk
J Jamsa Member Licensed User Longtime User Feb 13, 2012 #5 Great, it worked perfect! Thanks! Upvote 0