android - The constructor AndroidAuthSession(AppKeyPair, Session.AccessType, AccessTokenPair) is deprecated -


i trying implement dropbox core api uploads images android phone dropbox. however, there warning constructor used authorize dropbox account deprecated. may have led error of not being able link android phone dropbox account.

warning: constructor androidauthsession(appkeypair, session.accesstype, accesstokenpair) deprecated.

anyone knows problem , how solve it?

thanks!

this constructor deprecated because no longer necessary explicitly indicate access type, api can infer app key:

androidauthsession(appkeypair appkeypair, session.accesstype type, accesstokenpair accesstokenpair) 

instead, can use constructor:

androidauthsession(appkeypair appkeypair, accesstokenpair accesstokenpair) 

note, in current version of sdk, version marked deprecated, mistaken , corrected in future.

in case, using deprecated constructor shouldn't cause error, sounds may want ask question details of error getting.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -