DriveSync is an Android app that allows users to synchronize files from a selected Google Drive folder to a local folder on their device. It features Google sign-in, Drive and local folder selection, and a one-click sync process, ensuring your local folder mirrors the contents of your chosen Drive folder.
app/
├── src/
│ ├── main/
│ │ ├── java/com/barak/drivesync/MainActivity.java
│ │ ├── res/layout/activity_main.xml
│ │ └── res/values/strings.xml
│ └── test/
├── build.gradle
├── .gitignore
└── ...
MainActivity.java: Main activity with authentication, folder selection, and sync logic.activity_main.xml: UI layout for the main screen.strings.xml: String resources..gitignore: Files and folders ignored by git.
-
Clone the repository:
git clone https://github.com/BarakSason/DriveSync.git cd DriveSync -
Open in Android Studio:
- Open the project folder in Android Studio.
-
Configure Google API:
- Create a Google Cloud project and enable the Drive API.
- Download
google-services.jsonand place it in theapp/directory.
-
Build the project:
- Sync Gradle and build the project in Android Studio.
-
Run the app:
- Deploy to an Android device or emulator.
- Launch the app.
- Sign in with your Google account.
- Select a Google Drive folder.
- Select a local folder on your device.
- Tap the Sync button to synchronize files from Drive to your local folder.
- Google Play Services Auth
- Google Drive API
- AndroidX Libraries
- Glide (for user avatar)
- Java 8+
All dependencies are managed via Gradle.
Licensed under the Apache-2.0 License.