Folder created in Android application appears as binary file when accessed via usb -
i created new folder within app. did via
new file(folder-path).mkdirs();
the folder called "albums" , located in /storage/emulated/0/pictures. on android there no problems, folder appears in several filemanagers should. when connect phone computer (fedora 21), folder binary file filesize ~4kb, cant access files inside. checked permissions on folder think okay. can do? have scan file somehow recognized folder?
im on android 5.0.2
after creation (or after deletion) run:
mediascannerconnection.scanfile(this, new string[]{"/storage/emulated/0/pictures/albums/image1.jpg", "/storage/emulated/0/pictures/albums/image2.jpg", ....} , null, null}
every file change (create or delete) should in string array. alternatively, can restart device every time make change. note command not work correctly on empty folders. show 4 kb file instead, seeing now.
Comments
Post a Comment