<?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 Re: Linked Accounts in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Linked-Accounts/m-p/148778#M4877</link>
    <description>&lt;P&gt;Thanks for the additional information. Based on those version numbers, you are indeed using the Sync SDK in both cases. I'm afraid Dropbox&amp;nbsp;can't offer any further support or bug fix releases for it, per the timeline in the blog post. The change log is here though, in case the information is useful:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/s/c2g6diuld7evrxb/CHANGELOG.mdown" rel="nofollow noreferrer"&gt;https://www.dropbox.com/s/c2g6diuld7evrxb/CHANGELOG.mdown&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;In any case, I'm not sure I follow the issue with&amp;nbsp;FileLoader/SETTINGS_LOCATION/Environment.getDataDirectory, as that doesn't seem to be Dropbox SDK code. Perhaps you'd be better suited with any trouble with that in a general Android development forum.&lt;/P&gt;
&lt;P&gt;On the Dropbox SDK side, regarding the trouble you're having with getInstance, one thing that I do recall causing hard to troubleshoot issues is if the different SDK files aren't updated together.&amp;nbsp;That is, make sure you update both the .jar and the .so file(s) when upgrading the version of the SDK you're using.&lt;/P&gt;
&lt;P&gt;Alternatively, depending on how complex the&amp;nbsp;Dropbox API integration is in your app, it may be a better use of time to switch to a supported SDK.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Dec 2015 08:47:57 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2015-12-24T08:47:57Z</dc:date>
    <item>
      <title>Linked Accounts</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Linked-Accounts/m-p/148773#M4872</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I've been left to maintain an Android application that on a couple of devices has stopped working, and I've traced it down to something which I believe is quite strange. &amp;nbsp;I've typed in the code in question below rather than cut and paste, so excuse any typing errors.&lt;/P&gt;
&lt;P&gt;try&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if (mgr.hasLinkedAccount())&lt;BR /&gt;&amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; thisAccount = mgr.getLinkedAccount();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fs = DbxFileSystem.forAccount(thisAccount);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;The problem is that I get "True" back from hasLinkedAccount(), but after the call to getLinkedAccount() returns thisAccount is always Null.&lt;BR /&gt;&lt;BR /&gt;Has anyone else come across this problem? &amp;nbsp;I've tried (briefly) using the absolute latest lib (jar) but that doesn't even get past the first Dropbox call.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Francis Lillie&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:37:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Linked-Accounts/m-p/148773#M4872</guid>
      <dc:creator>Francis L.4</dc:creator>
      <dc:date>2019-05-29T09:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Linked Accounts</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Linked-Accounts/m-p/148774#M4873</link>
      <description>&lt;P&gt;Moved to the API forum.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2015 03:31:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Linked-Accounts/m-p/148774#M4873</guid>
      <dc:creator>Rich</dc:creator>
      <dc:date>2015-12-23T03:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Linked Accounts</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Linked-Accounts/m-p/148775#M4874</link>
      <description>&lt;P&gt;Hi Francis, to clarify, what version of the SDK do you have, and what do you mean specifically when you say it "doesn't even get past the first Dropbox call" on the latest one?&lt;/P&gt;
&lt;P&gt;Based on your code snippet, it sounds like you're using the deprecated &lt;A href="https://www.dropbox.com/developers-v1/sync/docs/android" target="_blank" rel="nofollow noreferrer"&gt;Sync SDK&lt;/A&gt;, which is no longer supported:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.dropbox.com/developers/2015/04/deprecating-the-sync-and-datastore-apis/" rel="nofollow noreferrer"&gt;https://blogs.dropbox.com/developers/2015/04/deprecating-the-sync-and-datastore-apis/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;(And you might be trying to drop in a different SDK, which won't work without rewriting your code, since they provide different interfaces.)&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2015 04:13:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Linked-Accounts/m-p/148775#M4874</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-12-24T04:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Linked Accounts</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Linked-Accounts/m-p/148776#M4875</link>
      <description>&lt;P&gt;My apologies. &amp;nbsp;My first post is pretty jumbled. &amp;nbsp;I have a lot of programming experience, but none of it on Android. &amp;nbsp;Until now. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;
&lt;P&gt;I believe the version I am running is 3.0.0, and when I drop 3.1.2 in,&amp;nbsp;the call to getInstance() never returns and never throws an exception.&lt;/P&gt;
&lt;P&gt;I understand the Sync SDK is now deprecated, but I need to get this &amp;nbsp;application back up and running quickly. &amp;nbsp;I've been playing around some more and have some more details.&lt;/P&gt;
&lt;P&gt;The problem seemingly related to specific versions on Android as I have an APK which will run on 4.4, 5.0.2, 5.1.1 and 6 on different Nexus 7's, but the same APK will also *not* run on Nexus 7's running the same.&lt;/P&gt;
&lt;P&gt;I unboxed two identical Nexus 7's and set them up from scratch exactly the same, to 5.1.1 and ran the APK on both of them. &amp;nbsp;After choosing which Dropobx account to link to (I chose the same account on both) the application would crash.&lt;/P&gt;
&lt;P&gt;I believe something else is happening though. &amp;nbsp;At first sight I was quite sure the problem was with the code I posted. &amp;nbsp;The actual code (not mine) is posted below.&lt;/P&gt;
&lt;P&gt;The FileLoader class extends AsyncTask, and I believe the main error is an uncaught exception in doInBackground().&lt;/P&gt;
&lt;P&gt;From looking through the forums there is something similar to what I'm getting, especially the mkdir issue, which is apparently fixed with 3.1.2 installed, which doesn't work for me.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropboxforum.com/hc/en-us/community/posts/203290225-Error-from-DbxFileSystem-forAccount-init-cpp-201-mkdir-dV-files-No-such-file-or-directory" target="_blank" rel="nofollow noreferrer"&gt;https://www.dropboxforum.com/hc/en-us/community/posts/203290225-Error-from-DbxFileSystem-forAccount-init-cpp-201-mkdir-dV-files-No-such-file-or-directory&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help would be greatly appreciated. &amp;nbsp;Oh, and thanks for taking the time to read my ramblings.&lt;/P&gt;
&lt;PRE&gt;public final static String SETTINGS_LOCATION = "/sdcard/etl_civ_settings.conf";&lt;BR /&gt;public final static String SETTINGS_UPDATE_LOCATION = "/etl_civ_settings.txt";&lt;/PRE&gt;
&lt;PRE&gt;private FileLoader fl = null;&lt;BR /&gt;private DbxFileSystem fs;&lt;BR /&gt;private DbxAccountManager mgr;&lt;BR /&gt;private static final int REQUEST_LINK_TO_DBX = 0; &lt;BR /&gt;private Activity act;&lt;/PRE&gt;
&lt;PRE&gt;&lt;BR /&gt; act = this;&lt;BR /&gt; mgr = DbxAccountManager.getInstance(this.getApplicationContext(), appKey, appSecret);&lt;BR /&gt;&lt;BR /&gt; if(!mgr.hasLinkedAccount()){&lt;BR /&gt; mgr.startLink((Activity)this, REQUEST_LINK_TO_DBX);&lt;BR /&gt; } else {&lt;BR /&gt; &lt;BR /&gt;fl = new FileLoader(SettingsHandeler.SETTINGS_LOCATION,SettingsHandeler.SETTINGS_UPDATE_LOCATION, mgr, this);&lt;BR /&gt; fl.execute(new String[] {});&lt;BR /&gt; &lt;BR /&gt; try {&lt;BR /&gt; fs = DbxFileSystem.forAccount(mgr.getLinkedAccount());&lt;BR /&gt; fs.addPathListener(this, DbxPath.ROOT, DbxFileSystem.PathListener.Mode.PATH_OR_CHILD);&lt;BR /&gt;} catch (Unauthorized e1) {&lt;BR /&gt; // TODO Auto-generated catch block&lt;BR /&gt; e1.printStackTrace();&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt; }&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Dec 2015 04:41:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Linked-Accounts/m-p/148776#M4875</guid>
      <dc:creator>Francis L.4</dc:creator>
      <dc:date>2015-12-24T04:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Linked Accounts</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Linked-Accounts/m-p/148777#M4876</link>
      <description>&lt;P&gt;Looking at that after posting it, could it be SETTINGS_LOCATION being hardwired and there being a permissions type problem where the FileLoader class can't save data there? &amp;nbsp;That would kind of make sense for the mkdir failing.&lt;/P&gt;
&lt;P&gt;If so, is there any way of finding out where I can write without any issues? &amp;nbsp;Would Environment.getDataDirectory() cover it?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2015 04:54:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Linked-Accounts/m-p/148777#M4876</guid>
      <dc:creator>Francis L.4</dc:creator>
      <dc:date>2015-12-24T04:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Linked Accounts</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Linked-Accounts/m-p/148778#M4877</link>
      <description>&lt;P&gt;Thanks for the additional information. Based on those version numbers, you are indeed using the Sync SDK in both cases. I'm afraid Dropbox&amp;nbsp;can't offer any further support or bug fix releases for it, per the timeline in the blog post. The change log is here though, in case the information is useful:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/s/c2g6diuld7evrxb/CHANGELOG.mdown" rel="nofollow noreferrer"&gt;https://www.dropbox.com/s/c2g6diuld7evrxb/CHANGELOG.mdown&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;In any case, I'm not sure I follow the issue with&amp;nbsp;FileLoader/SETTINGS_LOCATION/Environment.getDataDirectory, as that doesn't seem to be Dropbox SDK code. Perhaps you'd be better suited with any trouble with that in a general Android development forum.&lt;/P&gt;
&lt;P&gt;On the Dropbox SDK side, regarding the trouble you're having with getInstance, one thing that I do recall causing hard to troubleshoot issues is if the different SDK files aren't updated together.&amp;nbsp;That is, make sure you update both the .jar and the .so file(s) when upgrading the version of the SDK you're using.&lt;/P&gt;
&lt;P&gt;Alternatively, depending on how complex the&amp;nbsp;Dropbox API integration is in your app, it may be a better use of time to switch to a supported SDK.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2015 08:47:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Linked-Accounts/m-p/148778#M4877</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-12-24T08:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Linked Accounts</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Linked-Accounts/m-p/148779#M4878</link>
      <description>&lt;P&gt;Gregory,&lt;/P&gt;
&lt;P&gt;The updating of the .SO files. &amp;nbsp;That was it. &amp;nbsp;I'd forgotten to do them. &amp;nbsp;I put them in place and now the application is fully working once more under 3.1.2, so it was certainly a Dropbox issue. &amp;nbsp;Looking at the other forum link I sent, I was getting the same error, reported from a Dropbox resource.&lt;/P&gt;
&lt;P&gt;The FileLoader class was just an async class to grab the specified file from Dropbox, and it looked like it was failing when trying to write to storage.&lt;/P&gt;
&lt;P&gt;So, anyway, many thanks for pointing me in the right direction. &amp;nbsp;At least I can get guys working on site once more and it gives me time to work on replacing the Dropbox Sync code with something that's still supported.&lt;/P&gt;
&lt;P&gt;Merry Christmas and best regards,&lt;/P&gt;
&lt;P&gt;Francis&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2015 19:38:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Linked-Accounts/m-p/148779#M4878</guid>
      <dc:creator>Francis L.4</dc:creator>
      <dc:date>2015-12-24T19:38:46Z</dc:date>
    </item>
  </channel>
</rss>

