<?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: Switch from one account to another java SDK V2 ? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Switch-from-one-account-to-another-java-SDK-V2/m-p/229480#M12464</link>
    <description>&lt;P&gt;This is because the client was not reinitialized in the DropBoxClientFactory.java provided in the android SDK example. Now everything is ok with:&lt;/P&gt;&lt;PRE&gt;//make sDbxClient public in DropBoxFactory before 
DropboxClientFactory.sDbxClient = null;&lt;/PRE&gt;</description>
    <pubDate>Tue, 27 Jun 2017 12:49:25 GMT</pubDate>
    <dc:creator>Aristide</dc:creator>
    <dc:date>2017-06-27T12:49:25Z</dc:date>
    <item>
      <title>Switch from one account to another java SDK V2 ?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Switch-from-one-account-to-another-java-SDK-V2/m-p/229466#M12462</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Is there a way to switch from one account to another without revoking the accessToken. Since I migrated to V2 I can not manage several accounts with my app.&lt;BR /&gt;I always come back to the same account after:&lt;/P&gt;&lt;PRE&gt;//previously DbxClientV2 created
dropBoxService = null;
//previously String accessToken created
dropboxAccessToken = null;
//start to create a new one
Auth.startOAuth2Authentication(getActivity(), APP_KEY);
//finaly in on resume method:
dropboxAccessToken = Auth.getOAuth2Token();
                
DropboxClientFactory.init(dropboxAccessToken);
dropBoxService = DropboxClientFactory.getClient();
new GetCurrentAccountTask(dropBoxService, new GetCurrentAccountTask.Callback() {
                    @Override
                    public void onComplete(final FullAccount result) {

                        Log.i("DROPBOX",String.valueOf(result.getEmail()));
                        //i obtain the same previously created email and not a new one! Why?
                        
                    }               &lt;/PRE&gt;&lt;P&gt;SolidExplorer for example switches from one account to another without losing the accessToken. I can not find the trick.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:21:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Switch-from-one-account-to-another-java-SDK-V2/m-p/229466#M12462</guid>
      <dc:creator>Aristide</dc:creator>
      <dc:date>2019-05-29T09:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Switch from one account to another java SDK V2 ?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Switch-from-one-account-to-another-java-SDK-V2/m-p/229480#M12464</link>
      <description>&lt;P&gt;This is because the client was not reinitialized in the DropBoxClientFactory.java provided in the android SDK example. Now everything is ok with:&lt;/P&gt;&lt;PRE&gt;//make sDbxClient public in DropBoxFactory before 
DropboxClientFactory.sDbxClient = null;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Jun 2017 12:49:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Switch-from-one-account-to-another-java-SDK-V2/m-p/229480#M12464</guid>
      <dc:creator>Aristide</dc:creator>
      <dc:date>2017-06-27T12:49:25Z</dc:date>
    </item>
  </channel>
</rss>

