【发布时间】:2019-07-11 12:15:23
【问题描述】:
【问题讨论】:
-
首先请让我们知道您到现在为止做了什么?....我认为使用 android API for google drive 是不可能的。谢谢
-
你想用 google-drive 链接做什么?
标签: android android-studio google-drive-api google-drive-android-api
【问题讨论】:
标签: android android-studio google-drive-api google-drive-android-api
例如:
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
switch (item.getItemId()) {
case R.id.get_shared_resource:
startLink();
break;
default:
// ...
}
}
private void startLink() {
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(https://drive.google.com/...));
startActivity(i);
}
【讨论】:
使用已弃用且将在几个月内完全关闭的 Google Drive API 无法做到这一点:
https://developers.google.com/drive/android/deprecation
December 6, 2019
The Drive Android API is shut down and all connection attempts will be refused. Clients must migrate by this date.
【讨论】: