I have implemented an android app that open phone's camera, captures a foto and save it to the device under myfolder. I noticed that the captured pictures are saved first in Google Photos (under album \myFolder) and then after some time to the gallery of the device (again under album \myFolder). Why this is happening? Can the pictures go directly to the mobile's gallery?
String root = Environment.getExternalStorageDirectory().toString();
File newDir = new File(root + "/myFolder");
newDir.mkdirs();