<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic onActivityresult() not being invoked after choosing file using Dropbox Chooser in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/onActivityresult-not-being-invoked-after-choosing-file-using/m-p/134523#M4018</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;I am trying to use the Dropbox Chooser Api in android app to allow the user to choose files from Dropbox. I was able to launch the Dropbox Chooser successfully from the android app, but after selecting the file, it shows "Creating link..." and then returns to the app. I've overridden onActivityresult() method to get the information about the selected file.But, unfortunately the onActivityresult() is not being invoked and I'm not able to get information about the selected file. I don't see any error in the log except for &lt;BR /&gt;"com.dropbox.android.service.DropboxNetworkReceiver(15150): Setting receiver enabled: false". &lt;BR /&gt;Kindly help me to resolve this issue.&lt;BR /&gt;Thanks in advance.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Deepu&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:39:05 GMT</pubDate>
    <dc:creator>Deepu R.</dc:creator>
    <dc:date>2019-05-29T09:39:05Z</dc:date>
    <item>
      <title>onActivityresult() not being invoked after choosing file using Dropbox Chooser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/onActivityresult-not-being-invoked-after-choosing-file-using/m-p/134523#M4018</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I am trying to use the Dropbox Chooser Api in android app to allow the user to choose files from Dropbox. I was able to launch the Dropbox Chooser successfully from the android app, but after selecting the file, it shows "Creating link..." and then returns to the app. I've overridden onActivityresult() method to get the information about the selected file.But, unfortunately the onActivityresult() is not being invoked and I'm not able to get information about the selected file. I don't see any error in the log except for &lt;BR /&gt;"com.dropbox.android.service.DropboxNetworkReceiver(15150): Setting receiver enabled: false". &lt;BR /&gt;Kindly help me to resolve this issue.&lt;BR /&gt;Thanks in advance.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Deepu&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:39:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/onActivityresult-not-being-invoked-after-choosing-file-using/m-p/134523#M4018</guid>
      <dc:creator>Deepu R.</dc:creator>
      <dc:date>2019-05-29T09:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: onActivityresult() not being invoked after choosing file using Dropbox Chooser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/onActivityresult-not-being-invoked-after-choosing-file-using/m-p/134524#M4019</link>
      <description>&lt;P&gt;Can you share:&lt;/P&gt;
&lt;P&gt;- the version number of the Android Chooser SDK you're using&lt;/P&gt;
&lt;P&gt;- the relevant code snippets&lt;/P&gt;
&lt;P&gt;- whether or not the example app included with the SDK works for you?&lt;/P&gt;
&lt;P&gt;Thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2015 01:41:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/onActivityresult-not-being-invoked-after-choosing-file-using/m-p/134524#M4019</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-10-27T01:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: onActivityresult() not being invoked after choosing file using Dropbox Chooser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/onActivityresult-not-being-invoked-after-choosing-file-using/m-p/134525#M4020</link>
      <description>&lt;P&gt;Hi Gregory,&lt;/P&gt;
&lt;P&gt;- The Android SDK version is&amp;nbsp;1.0.1.&lt;/P&gt;
&lt;P&gt;- Currently I'm trying to integrate Dropbox Chooser as a cordova plugin in to my app.&lt;/P&gt;
&lt;P&gt;So in the plugin java file indside &lt;STRONG&gt;execute&lt;/STRONG&gt;() method I've added the following lines of code:-&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;cordova.setActivityResultCallback(DropboxPlugin.this);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; mChooser = new DbxChooser(APP_KEY);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; mChooser.forResultType(DbxChooser.ResultType.PREVIEW_LINK)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; .launch(this.cordova.getActivity(), DBX_CHOOSER_REQUEST);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;And I've overridden &lt;STRONG&gt;onActivityresult&lt;/STRONG&gt;() method.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;@Override&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; public void onActivityResult(int requestCode, int resultCode, Intent data) {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; System.out.println("------Inside onActivityResult ------");&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; if (requestCode == DBX_CHOOSER_REQUEST) {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; if (resultCode == Activity.RESULT_OK) {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; DbxChooser.Result result = new DbxChooser.Result(data);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; String fileName = result.getName();&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; }&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; }&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; else {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; super.onActivityResult(requestCode, resultCode, data);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; }&lt;/STRONG&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;STRONG&gt; }&lt;/STRONG&gt;&lt;BR /&gt; &lt;BR /&gt;But now I can observe that for the first time, after launching the Dropbox Chooser and choosing a file, the &lt;STRONG&gt;onActivityResult&lt;/STRONG&gt;() is never being invoked.&lt;BR /&gt;From the second time onwards, the &lt;STRONG&gt;onActivityResult&lt;/STRONG&gt;() method is getting invoked even before the Dropbox Chooser is launched.&lt;/P&gt;
&lt;P&gt;Please provide any inputs on this issue.&lt;/P&gt;
&lt;P&gt;Let me know if you want any further inputs from me.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Deepu&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2015 14:41:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/onActivityresult-not-being-invoked-after-choosing-file-using/m-p/134525#M4020</guid>
      <dc:creator>Deepu R.</dc:creator>
      <dc:date>2015-10-27T14:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: onActivityresult() not being invoked after choosing file using Dropbox Chooser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/onActivityresult-not-being-invoked-after-choosing-file-using/m-p/134526#M4021</link>
      <description>&lt;P&gt;Thanks! Does the sample app in the &lt;A href="https://www.dropbox.com/developers/chooser#android" target="_blank" rel="nofollow noreferrer"&gt;SDK&lt;/A&gt; work for you though? That might be a good indicator of whether or not Cordova is relevant to the issue.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 03:28:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/onActivityresult-not-being-invoked-after-choosing-file-using/m-p/134526#M4021</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-10-28T03:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: onActivityresult() not being invoked after choosing file using Dropbox Chooser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/onActivityresult-not-being-invoked-after-choosing-file-using/m-p/134527#M4022</link>
      <description>&lt;P&gt;I can't test the sample app provided in the SDK, since the app I am currently developing is based on web view and I won't be able to use the sample java file provided. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@B0F70D28791EB05FA3EA0C3BDDF08EE3/emoticons/1f61e.png" alt=":disappointed_face:" title=":disappointed_face:" /&gt;&lt;/P&gt;
&lt;P&gt;Can you provide any other input.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Deepu&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 13:17:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/onActivityresult-not-being-invoked-after-choosing-file-using/m-p/134527#M4022</guid>
      <dc:creator>Deepu R.</dc:creator>
      <dc:date>2015-10-28T13:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: onActivityresult() not being invoked after choosing file using Dropbox Chooser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/onActivityresult-not-being-invoked-after-choosing-file-using/m-p/134528#M4023</link>
      <description>&lt;P&gt;The sample app included with the SDK is a working, standalone app that you can run by itself, unrelated to your own app.&lt;/P&gt;
&lt;P&gt;Anyway,&amp;nbsp;Dropbox itself doesn't really control when&amp;nbsp;onActivityResult gets called, since that's just part of the Android app lifecycle. I still suspect this is due to how Cordova works, so you may need to refer to the Cordova documentation. For example there's a StackOverflow question here that looks like it may be relevant:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/18125415/onactivityresult-never-gets-called-phonegap-cordova" rel="nofollow noreferrer"&gt;https://stackoverflow.com/questions/18125415/onactivityresult-never-gets-called-phonegap-cordova&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2015 01:01:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/onActivityresult-not-being-invoked-after-choosing-file-using/m-p/134528#M4023</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-10-29T01:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: onActivityresult() not being invoked after choosing file using Dropbox Chooser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/onActivityresult-not-being-invoked-after-choosing-file-using/m-p/134529#M4024</link>
      <description>&lt;P&gt;Yes!!Finally found the solution. I need to pass an instance of CordovaInterface to launch the Dropbox Chooser in order to get the result back to the plugin. Otherwise it will never get invoked.&lt;/P&gt;
&lt;P&gt;Thanks Gregory, for the inputs.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Deepu&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2015 19:40:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/onActivityresult-not-being-invoked-after-choosing-file-using/m-p/134529#M4024</guid>
      <dc:creator>Deepu R.</dc:creator>
      <dc:date>2015-10-29T19:40:22Z</dc:date>
    </item>
  </channel>
</rss>

