googleworkspace / android-samples

Android samples for Google Workspace APIs
Apache License 2.0
635 stars 410 forks source link

issue in open folderpicker in fragment #28

Closed Slake07 closed 9 years ago

Slake07 commented 9 years ago

startIntentSenderForResult( intentSender, REQUEST_CODE_OPENER, new Intent(), 0, 0, 0);

above method not working in fragment. it working fine in activity. help me out to solve it.

kroikie commented 9 years ago

You should be able to handle the result in onActivityResult in the fragment. If the activity is handling the REQUEST_CODE_OPENER and not calling super or calling fragment.onActivityResult then the call may get stuck in the activity and never get to the fragment.

kroikie commented 9 years ago

Closing this issue, please open another if still exists.

niranjansheshadri commented 7 years ago

@kroikie I am having same issue which is mentioned in the comment above,

startIntentSenderForResult(intentSender, REQUEST_CODE_OPENER, null, 0, 0, 0);

I am even handling the onActivityResult in my Fragment and even calling super.onActivityResult. It is working fine in activity. help me to solve it.