I’m trying to enable full control of my Google Drive from my Android phone — specifically, the ability to
delete files.
So far, I have successfully managed to
read and write to Google Drive using the ContentResolver library and an intent such as:
Dim i As Intent
i.Initialize("android.intent.action.OPEN_DOCUMENT", "")
i.AddCategory("android.intent.category.OPENABLE")
i.SetType("*/*")..........
However, I haven’t found any way to gain full control of Google Drive through B4A, particularly for file deletion.
I understand that it requires registering a project in the
Google Cloud Console, but every method I’ve tried eventually led to a
dead end:
- I created a Service Account, but couldn’t obtain usable tokens.
- I tried creating a Web, Android, and even a Desktop project — I received a Client ID and Client Secret, but couldn’t successfully handle the OAuth2 redirect process.
Since I couldn’t find a clear solution in the forum, I would greatly appreciate guidance on how to properly gain full control of Google Drive, including
file deletion, using B4A.