Android : Drive app and Intent.ACTION_GET_CONTENT -
i import files installed google drive app app using intent.action_get_content , mimetype of intent set "*/*".
i able other installed app dropbox,onedrive , box, not google drive. here code :
intent action = new intent(intent.action_get_content); action.putextra(intent.extra_local_only, true); action = action.settype("*/*").addcategory(intent.category_openable); startactivityforresult(intent.createchooser(action, "upload file from..."),constants.file_chooser_request_code );
thanks.
very late answer need remove action.putextra(intent.extra_local_only, true);
in order see google drive option in picker.
Comments
Post a Comment