I tried to create a spreadsheet in Android. It sent a success message but it wasn't created.
I used the following code to create it:
MetadataChangeSet metadataChangeSet = new MetadataChangeSet.Builder()
.setMimeType("application/vnd.google-apps.spreadsheet").setTitle("MonthExpense").build();
IntentSender intentSender = Drive.DriveApi
.newCreateFileActivityBuilder()
.setInitialMetadata(metadataChangeSet)
.setInitialDriveContents(result.getDriveContents())
.build(appobject.mGoogleApiClient);
try {
activity.startIntentSenderForResult(intentSender, 56, null, 0, 0, 0);
}
If I use any other mimetype it works correctly can anyone please guide me in the right way.
Edit If i try any other mime type it works with out problem, So i guess the problem related with "application/vnd.google-apps.spreadsheet"