how to sync photos to google photos code example
Example: how to backup photos to google drive
On your Android phone or tablet, open the Google Photos app .
Sign in to your Google Account.
At the top, tap Menu .
Select Settings. Back up & sync.
Tap "Back up & sync" on or off. If you've run out of storage, scroll down and tap Turn off backup.