I am getting a kind of weird error with my client request, every time the code gets to
client.users().getCurrentAccount()
it seems to crash with no error reporting, the app just stops. Did I se up somthing wrong? I am using the token generated from my account.
Account account1;
final String ACCESS_Token = "<redacted>";
//create dropbox clirent
DbxRequestConfig config = new DbxRequestConfig("dropbox/java-tutorial");
DbxClientV2 client = new DbxClientV2(config, ACCESS_Token);
try {
TextView TV1bx = (TextView) findViewById(R.id.TV1);
account1 = client.users().getCurrentAccount();
String accountID = account1.getAccountId();
TV1bx.setText(accountID);
} catch (DbxException e1) {
e1.printStackTrace();
}