简体   繁体   English

如何将我的 Android 应用程序连接到谷歌驱动器?

[英]How can i connect my Android app to google drive?

I have to store large amounts of data(audio and video) in my app.我必须在我的应用程序中存储大量数据(音频和视频)。 Adding them to the mysql database will not be efficient.将它们添加到 mysql 数据库不会有效率。 Is there a way i can upload it to my google drive and then access it by streaming on my app?有没有办法可以将它上传到我的谷歌驱动器,然后通过在我的应用程序上流式传输来访问它? If there is a video tutorial please guide me a link, I'm a beginner at developing.如果有视频教程,请指导我一个链接,我是开发的初学者。

Source code : Quickstart application showing the Google Drive API for Android源代码:显示适用于 Android 的 Google Drive API 的快速入门应用程序

The code is too big to be put up here.代码太大,放在这里。 Its an easy process.这是一个简单的过程。

How to do it?怎么做?

  1. Create an OAuth 2.0 client as described in the Getting Started guide.按照入门指南中的说明创建 OAuth 2.0 客户端。
  2. Make sure you have Google Play Services development set up correctly.确保您已正确设置 Google Play 服务开发。
  3. Grab the source and create a project in your IDE获取源代码并在您的 IDE 中创建一个项目
  4. Run and edit!运行和编辑!

Also Refer : Introduction to the Google Drive Android API另请参阅: Google Drive Android API 简介

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在Android应用中删除Google驱动器文件 - How can I delete Google drive file on android app 如何连接谷歌应用程序引擎应用程序与我的Android? - How can i connect a google app-engine application with my android? 如何将我的数据库连接到我的 android 应用程序 - How can i connect my database to my android app 如何仅使用Google Android应用中的Google Drive API在Google云端硬盘上创建和编辑电子表格文件? - How do I create & edit a spreadsheet file on google drive using Google Drive APIs only from my Android app? 我可以将我的应用程序共享偏好数据限制到 android 中的谷歌驱动器/云吗? - Can I restrict my app sharedprefs data to google drive/cloud in android? 我的Android应用程序可以使用Google Drive替代亚马逊s3吗? - Can I use Google Drive as a substitute for amazon s3 for my android app? 我如何打开存储在我的Google驱动器中的Word文件到我的应用程序 - How can i open a word file into my app which is stored in my google drive 如何在本地将本地数据库连接到我的Android应用程序? - How can I connect local db to my Android app locally? 如何让我的 android 应用程序连接到互联网? (统一) - How can I make my android app connect to the internet? (Unity) 如何使用Android应用程序连接到MySQL数据库? - How can i connect to my MySQL database with an android app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM