Android谷歌驱动器API创build和编辑Excel文件
我正在尝试创build一个新的Excel文件,并在Android应用程序中进行编辑。 我正在使用Google Drive android API。 如果我使用:
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
作为MIMEtypes,我可以看到驱动器上的文件,并在编辑它时,驱动器将其复制并转换为自己的types作为新文件。 所以当我用我的应用程序得到这个文件时,文件仍然是空的。
如果我使用:
application/vnd.google-apps.spreadsheet
作为MIMEtypes,Google云端硬盘会回应说它成功创build了该文件,但我无法在云端硬盘上看到它。
有任何想法吗?
application / vnd.google-apps.spreadsheet是Google电子表格的MIMEtypes,而不是Excel文件。 您目前无法通过Android API创buildGoogle电子表格(这是一个成功的错误。)
如果您想创build一个Microsoft Excel文档,您需要Excel的MIMEtypes:application / vnd.ms-excel