Android app, Desktop c# app sharing Google Drive App Data

拜拜、爱过 提交于 2019-12-12 03:28:07

问题


I am trying to sync data between my C# desktop application and an Android application. I got the desktop app running as intended with no problems. However I want to access the data uploaded by the desktop app with the android app and that is where I run into issues.

This is how I connect to drive in my android app.

 myGoogleApiClient = new GoogleApiClient.Builder(this)
                .addApi(Drive.API)
                .addScope(Drive.SCOPE_APPFOLDER)
                .addConnectionCallbacks(this)
                .addOnConnectionFailedListener(this)
                .build();
    }
    myGoogleApiClient.connect();}

This is what happens when i look into my drive Settings>Manage Apps. There appear to be two apps.

I created an "OAuth 2.0 client ID" in order to access drive from my android device. I assume this is where I made a mistake. How should I do it in order to access the same app data folder on my google drive from both of my apps?

来源:https://stackoverflow.com/questions/37338921/android-app-desktop-c-sharp-app-sharing-google-drive-app-data

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!