如何在android中获得谷歌硬盘共享链接
我正在开发一款使用Google Drive的应用程序。我想获得公共共享链接 例如:如何在android中获得谷歌硬盘共享链接,android,android-studio,google-drive-api,google-drive-android-api,Android,Android Studio,Google Drive Api,Google Drive Android Api,我正在开发一款使用Google Drive的应用程序。我想获得公共共享链接 例如: 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 // a
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是不可能做到这一点的,这些API已被弃用,并将在几个月内完全关闭:
首先,请让我们知道您到目前为止做了什么?…我认为使用android API for google drive是不可能的。谢谢你你想用谷歌驱动器链接做什么?
December 6, 2019
The Drive Android API is shut down and all connection attempts will be refused. Clients must migrate by this date.