Holger K. Helpful | Level 6

Comments

  • Doing some more tests it turns out the issue originates from there. It would be good that you update your sample so that it creates a new client in case the token has changed.
  • I will see what I can do, but one question upfront: Is it possible that DropboxClientFactory.init(accessToken); caches the accessToken somehow as long the app is in memory?
  • The new access token is obtained by the original code. I just need to authorize again I get a new access token (the value changes in the debugger) When trying to use it, it says the token is invalid.
  • I made the following changes to the example: Every: "An error has occurred" changed to "An error has occurred: " + e.getMessage() In UserActivitiy.java I changed loadData to protected void loadData() { new GetCurrentAccountTask(DropboxClientFactory.getClient(), new GetCurrentAccountTask.Callback() { @Override public void…
  • The resolved visibility is PUBLIC, but today it seems to work. I did not change my code, so this is pretty odd. Anyways I have one more question about this. The link that is returned ends with dl=0. Is there some parameter that returns a link ending with dl=1
  • Thanks, but the resulting link is not public, it requires to login SharedLinkMetadata slm = mDbxClient.sharing().createSharedLinkWithSettings(remoteFolderPath + "/" + remoteFileName, SharedLinkSettings.newBuilder().withRequestedVisibility(RequestedVisibility.PUBLIC).build()); String url = slm.getUrl();