I'm developing an Android application where some data is exported in a json file written in the Download folder. My objective is to get this file from a computer (when the device is USB connected). When my json file is on the device, it's not showing on the computer.

So I tested some cases manually and I don't understand what's happening. When I create a test.json file on the device from the computer file explorer menu, I can see it on the device. If I make a copy of this file on the device, I can't rename it and it's not showing on the computer. I tried to create a folder on the device and put the copied file in it. The folder is present on the computer but it's empty.

If I make the same manipulations with a txt file, all the files are visible on the computer file explorer.

It looks like I can't see on the computer the json files I created on the Android device (I'm using Android 7). Is there some kind of permissions to give? How to see all of the Android device files on the computer file explorer when the device is USB connected?

  • Some extra details: android.stackexchange.com/a/209119/218526 – Irfan Latif Dec 6 '19 at 10:42
  • It seems like I don't have the same problem as the linked posts. If a folder is created it'll be visible in real time but only the json files created on the device are not showing up. The above post indicates that the solution is to run a media scanner app but I'm working with devices without google account so I can't install another app or scan the device each time I create a file. The showing files never update, I just never can see the json files created on the device. – Morgane Dec 6 '19 at 13:18
  • For me unplugging and replugging the USB cable (after making file changes) makes them appear on the PC. Otherwise a lot of times new files do not show up there. – singhnsk Dec 6 '19 at 19:27
  • Unplegging and replugging doesn't change anything for me. The json files created by the android device are inexistant on the computer. Maybe I should save my data into a txt file, but I don't like it very much.. – Morgane Dec 9 '19 at 10:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.