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?