In my android-app I have created a folder on the internal storage of my device.
When I browse the internal storage I can see the folder and its content.
When I connect the device to my pc and open the internal storage, the folder is missing. All other folders are available, but not the folder I created from my app.
I tried to turn on "show invisible files" for my windows, but the folder is still missing. Any suggestions?
I tried to use MediaScannerConnection.scanFile from Vijai's answere. After this, i can see the file, but is not displayed as a directorie. Nothing happens with double click on it.
The folder itself is beeing created by my databasemanager. Its an extensionclass of the SQLiteOpenHelper-class.
private DatabaseManager(Context context) {
super(context, DATABASE_NAME, null, DATABASE_VERSION); //DATABASE_NAME = Environment.getExternalStorageDirectory() + File.separator + "[Name of my directorie]" + File.separator + "[Name of my db].DB";
mContext = context;
getWritableDatabase();
}
This was working fine for so long. I was able to see the directory in the past. Since my customer changed his phone to android 6.0.1, the file is no more visible.