I want to create file inside a specific folder in google drive ( not the default location ) using Xamarin.Andriod
I'm using the below code
MetadataChangeSet changeSetfile = new MetadataChangeSet.Builder()
.SetTitle("Test.jpg")
.SetMimeType("image/jpeg")
.Build();
DriveClass.DriveApi
.GetRootFolder(_googleApiClient)
.CreateFile(_googleApiClient, changeSetfile, contentResults.DriveContents);
Implement
GoogleApiClient.IConnectionCallbacks
Obtain a
GoogleApiClient
withDriveClass.API
andDriveClass.ScopeFile
GoogleApiClient
Example:Folder and File Example:
Notes:
Title
)Title
Trash
are returned queries unless excluded.Using
blocks andDispose
to avoid leaks