java - Create folder with UI Google Drive Android -


i want able choose and/or create new folder in google drive using ui user , save folder id later use.

right i'm using:

intentsender intentsender = drive.driveapi             .newopenfileactivitybuilder()             .build(mgoogleapiclient);     try {         log.d(tag, "startar ui");         startintentsenderforresult(                 intentsender, 5, null, 0, 0, 0);     } catch (intentsender.sendintentexception e) {         log.i(tag, "failed launch file chooser.");     } } 

it works it's not ideal purpose. other newactivitybuilder find createfile have same problems.

is there workarounds making work?

use extra_response_drive_id driveid result.(https://developers.google.com/android/reference/com/google/android/gms/drive/openfileactivitybuilder.html#extra_response_drive_id)

@override protected void onactivityresult(int requestcode, int resultcode, intent data) {     switch (requestcode) {       case 5:         if (resultcode == result_ok) {           driveid driveid =               (driveid) data.getparcelableextra(openfileactivitybuilder.extra_response_drive_id);         }         break;     }   } 

Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -