简体   繁体   中英

Google Drive API integration with Android

I'm working on an android app which should connect google drive to download some data, I've downloaded googledrive sample app, but not able to find Drive GoogleAccountCredential classes as I need to import those to access google drive, I've added google play services library to my app.

I've followed this http://software.intel.com/en-us/articles/connecting-to-google-drive-from-an-android-app and used the same src code.

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

How can I solve this issue.

replace

GoogleAccountCredential crd = GoogleAccountCredential.usingOAuth2(this, DriveScopes.DRIVE_FILE); because Arrays.asList is deperecated (Naresh Bandaru 9985649940)

Do you import GoogleAccountCredential and DriveScopes classes? I think that Eclipse don't know these classes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM