I move the photo from the directory to another using the following code
File oldfile= new File(originalImagePath); File newfile=new File(newImagePath); boolean d=oldfile.renameTo(newfilee); if(d){ sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://" + newfilee.getPath()))); }
the photos have been moved to the new catalog successfully, but it takes too much time when the photos are counted more to update the galleries and gallery updates after about 30 seconds or more. So give me a suggestion what should I do if the logic for updating the file using sendBroadcast is incorrect
Thanks.
android photo-gallery
kiran boghra
source share