This shows the Dropbox API authorization flow and some API calls to retrieve files.
Prerequisites: Apache Maven (to build the SDK), Android Studio (not strictly necessary)
- Download this repository.
- Build the SDK: run
mvn installin the SDK root directory (two levels up from this folder). - In Android Studio, choose "Import Project" and select this folder.
- Edit "src/main/AndroidManifest.xml" and "src/main/res/values/strings.xml" and replace
YOUR_APP_KEY_HEREwith your Dropbox API key (how to get a Dropbox API key). - Build and run.
If you don't have Android Studio, you can use the command-line:
- Make sure you have the standalone Android SDK Tools.
- Make sure your
ANDROID_SDKenvironment variable is set to the path where the standalone Android SDK Tools are installed. - To build: run
./gradlew assemble. - The example app's ".apk" files should now be in "build/outputs/apk". You can use "adb install" to install them to the emulator or to a real device.
