mp4, jpg file syncronizing from windows itself works well, but when i want to see thru gallary app, because medial update is not done automatically.
it does not appear immeadiately, sometimes forever now shown
in case of media file, following statement or similar statement should be added after copying file completed
MediaScannerConnection.scanFile(mContext,
new String[]{new File (fullFolder, tgtName).toString()}, null, null);
Looks similar issue but my issue is reverse situation.
After creating file in windows, file is sysnced to phone correctly and immediately, it can be found in file explorer app, but media update is not done immediately or never, that measns not be shown in photo gallary app, so i cannot handle it in gallary app.
That’s why mediat uri updated required for the file in sync app.