Reference_Sidebar - gtmanc/Crossdrives GitHub Wiki
Useful reference
Style button
https://www.codebrainer.com/blog/13-designs-for-buttons-every-android-beginner-should-know
Design pattern
Google play service
Google API client library
https://developers.google.com/api-client-library/java
Google drive
- Google Drive API document including quick start
- sample code in github: https://github.com/gsuitedevs/android-samples/tree/master/drive/deprecation
- Resumable upload: a very good article for explanation of G api regarding upload,
App registration
Google cloud console
Create OAuth client ID
Read this first: https://developers.google.com/android/guides/client-auth
- Tips
- the keytool execution can be found in the installation path. e.g. C:\Program Files\Java\jdk-11.0.12\bin. You have to switch to that folder and open a text windows to perform generation of key. Note file debug.keystore in user/.android is generated after build operation in android studio is executed at least once.
Microsoft Azure Portal
- Microsoft Azure app registration requires Base64 encoded SHA1 footprint. However, the java keytool doesn't generate it. You can use the conversion web site to convert your SHA1 footprint provided with java keytool to Base64 encoded format. e.g. https://base64.guru/converter/encode/hex
- In the platform configuration section, open "quick start" for helpful instructions especially for the json file which is needed for configuring your device.
- In supportted account type, select Personal Microsoft Acccounts only. Azure portoal hide the optioanl by default. To enable it, go to Manifest editor, change property "accessTokenAcceptedVersion" to 2 and "signInAudience" to PersonalMicrosoftAccount. See Understanding the Azure Active Directory application manifest for explanation of the manifest property.
- Go to premission section, select Graph API. Check Files.ReadWrite.All, Contact.Read and TBD permissions. Check Files.ReadWrite.AppFolder as well because we may need in the future. Remember to click the button "grant admin consent for default directory".
Onedrive
Basic
- https://docs.microsoft.com/en-us/azure/active-directory/develop/tutorial-v2-android
- https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-v2-android
- https://stackoverflow.com/questions/51819810/microsoft-graph-api-profile-picture-update-in-java
- Graph sdk. Hint: Use slide side menu to navigate to the other tutorials.
- Graph sdk get started. This link contains good code example for graph sdk 3.X.
- Onedrive sdk open source
- Onedrive sample2
advanced:
- Graph REST API example code: https://github.com/microsoftgraph/android-java-snippets-rest-sample