I have this code in my android app and I want to publish files to my dropbox not to the user dropbox so the credintial should be hardcoded instead of asking the user for them, so I think this line mDBApi.getSession().startOAuth2Authentication(MyActivity.this) should be change but I couldn't know what to replace it with, any help ??
here is the code ..
appKeys = new AppKeyPair(APP_KEY, APP_SECRET);
session = new AndroidAuthSession(appKeys);
mDBApi = new DropboxAPI<AndroidAuthSession>(session);
mDBApi.getSession().startOAuth2Authentication(MyActivity.this);