Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/181.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在android中获得谷歌硬盘共享链接_Android_Android Studio_Google Drive Api_Google Drive Android Api - Fatal编程技术网

如何在android中获得谷歌硬盘共享链接

如何在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

我正在开发一款使用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
        // 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.