In my android application have button called Upload whenever i click the button it needs to redirect to Google Drive, from that i have to pick a file & need read the file (file may be csv),
is there anyway to do?? I have tried below code but it shows Client must connected error
GoogleApiClient mGoogleApiClient;
            mGoogleApiClient = new GoogleApiClient.Builder(this)
                    .addApi(Drive.API).addScope(Drive.SCOPE_FILE)
                    .addApi(Plus.API).addScope(Plus.SCOPE_PLUS_LOGIN)
                    .addConnectionCallbacks(this)
                    .addOnConnectionFailedListener(this).build();
            mGoogleApiClient.connect();
            // Launch user interface and allow user to select file
            IntentSender i = Drive.DriveApi.newOpenFileActivityBuilder()
                    .setMimeType(new String[] { "text/plain" })
                    .build(mGoogleApiClient);
            try {
                startIntentSenderForResult(i, 100, null, 0, 0, 0);
            } catch (SendIntentException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
Thanks in advance