K kuosda Active Member Licensed User Longtime User Aug 22, 2016 #1 Hello, I wrote an APP create files and folders,however connected to the computer can not find the files and folders ,must After reboot the phone,The computer can the find files and folders. Is there any way to solve? device : Asus Zenfone 2 (ZE550ML)
Hello, I wrote an APP create files and folders,however connected to the computer can not find the files and folders ,must After reboot the phone,The computer can the find files and folders. Is there any way to solve? device : Asus Zenfone 2 (ZE550ML)
Erel B4X founder Staff member Licensed User Longtime User Aug 22, 2016 #2 I guess that you are creating the files and folders under File.DirRootExternal or File.DirDefaultExternal. You can use the code posted here to force the media scanner to detect the new files you have created. This will make them appear in the browser. https://www.b4x.com/android/forum/threads/force-media-scanner-on-deleted-file.25794/#post-214985 Upvote 0
I guess that you are creating the files and folders under File.DirRootExternal or File.DirDefaultExternal. You can use the code posted here to force the media scanner to detect the new files you have created. This will make them appear in the browser. https://www.b4x.com/android/forum/threads/force-media-scanner-on-deleted-file.25794/#post-214985
K kuosda Active Member Licensed User Longtime User Aug 22, 2016 #3 I tried but still the same Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Aug 22, 2016 #4 I don't think that there is any other way. Note that you can reconnect the USB cable instead of restarting the device. Upvote 0
I don't think that there is any other way. Note that you can reconnect the USB cable instead of restarting the device.