stu14t Active Member Licensed User Longtime User Nov 12, 2012 #1 My app uses text files to store data. These files are then used to produce reports within Excel. I can see them in the Android file explorer, I can move them around with the Android file explored and I can open them with the text editor within Android. Trouble is, I can't see them in windows explorer at all. Even if I move them they are still invisible. I've also tried F5 to refresh and still no dice. ??
My app uses text files to store data. These files are then used to produce reports within Excel. I can see them in the Android file explorer, I can move them around with the Android file explored and I can open them with the text editor within Android. Trouble is, I can't see them in windows explorer at all. Even if I move them they are still invisible. I've also tried F5 to refresh and still no dice. ??
klaus Expert Licensed User Longtime User Nov 12, 2012 #2 Where do you save these files ? Some folders are not accessible from Windows. You should save them in the SDCard. Best regards. Upvote 0
Where do you save these files ? Some folders are not accessible from Windows. You should save them in the SDCard. Best regards.
stu14t Active Member Licensed User Longtime User Nov 12, 2012 #3 Klaus, I've moved them everywhere including the SD card. There are other text files created by other unrelated applications that are visible to Windows, but not these for some reason. It is creating them, that's not the problem, I just cant find them in windows. Edit --- If I move the file about it eventualy becomes visible to Windows Edit2 -- Is this a Media Transfer mode problem? I'm using a Samsung Galaxy S2 using Kies driver to connect. Last edited: Nov 13, 2012 Upvote 0
Klaus, I've moved them everywhere including the SD card. There are other text files created by other unrelated applications that are visible to Windows, but not these for some reason. It is creating them, that's not the problem, I just cant find them in windows. Edit --- If I move the file about it eventualy becomes visible to Windows Edit2 -- Is this a Media Transfer mode problem? I'm using a Samsung Galaxy S2 using Kies driver to connect.
Erel B4X founder Staff member Licensed User Longtime User Nov 13, 2012 #4 You should force the media scanner to scan the new files: Code: Copy Dim Phone As Phone Dim i As Intent i.Initialize("android.intent.action.MEDIA_SCANNER_SCAN_FILE", _ "file://" & File.Combine(File.DirRootExternal, "example.txt")) Phone.SendBroadcastIntent(i) Upvote 0
You should force the media scanner to scan the new files: Code: Copy Dim Phone As Phone Dim i As Intent i.Initialize("android.intent.action.MEDIA_SCANNER_SCAN_FILE", _ "file://" & File.Combine(File.DirRootExternal, "example.txt")) Phone.SendBroadcastIntent(i)
stu14t Active Member Licensed User Longtime User Nov 13, 2012 #5 Erel, Many thanks for the assistance with this. Will I have to declare the intent in the manifest file? Stu. Upvote 0
Erel, Many thanks for the assistance with this. Will I have to declare the intent in the manifest file? Stu.
Erel B4X founder Staff member Licensed User Longtime User Nov 13, 2012 #6 No. You only need to declare intents that your application intercepts. Upvote 0
stu14t Active Member Licensed User Longtime User Nov 13, 2012 #7 Many thanks Erel I'll try the solution out later Update - Works a treat, Thanks Erel Last edited: Nov 13, 2012 Upvote 0
Bob Sabrook Member Licensed User Longtime User Aug 13, 2015 #8 This worked for me too -- Windows can now see .CSV files created by my app. Great! Many thanks Erel. Upvote 0