Does broadcast in android when shooting from camera

I am writing code to automatically backup sdcard photos to cloud ( project is on github ). When you press the backup button, the app will upload all photos to SDCard and upload them to the cloud. But after that, if the user takes new photos from the camera, the application does not take any action, because it is not notified. So my question is, does Android support live streaming when shooting with a camera?

Below is the requirement:

  • When user takes new photos, immediately back up new photos

  • if the application is closed and the user takes new photos after restarting the application finds new photos and backups

any recommendations or solutions or materials that help implement this feature would be appreciated.

+3


source to share


1 answer


Android not working when shooting with camera

  • a database to store information of all backup photos and every time you restart the application, check the database, if the photo information does not exist, this is a new photo you want to download immediately. After that, add information about the uploaded photos to the database to make sure it is up to date.


But the solution has some problems, it can lead to an increase in the battery, processor, etc.

  1. Actually I have already solved the problem, click the detailed answer and all the source code of the project
0


source







All Articles