2 Replies - 281 Views - Last Post: 04 September 2017 - 12:02 AM

#1 Nova6112  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 90
  • Joined: 28-November 14

How can i migrate my android application from Dropbox v1 to v2

Posted 30 August 2017 - 02:52 AM

Hello guys, i searched google but i didn't find anything new. So just i am posting here, Can you guys help me to migrate my app from v1 to v2

My old code :
AndroidAuthSession session = buildSession();
DropboxAPI<AndroidAuthSession> mApi = new DropboxAPI<AndroidAuthSession>(session);
mApi.getSession().startAuthentication(context);


This code to get Authenticate and Now i changed it to

AndroidAuthSession session = buildSession();
DropboxAPI<AndroidAuthSession> mApi = new DropboxAPI<AndroidAuthSession>(session);
mApi.getSession().startOAuth2Authentication(context);


as per the following guide but still that your app will no longer support dropbox api error message throws. What i am doing wrong or how can i Migrate please help..

Thanks in Advance...

Is This A Good Question/Topic? 0
  • +

Replies To: How can i migrate my android application from Dropbox v1 to v2

#2 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 13401
  • View blog
  • Posts: 53,498
  • Joined: 12-June 08

Re: How can i migrate my android application from Dropbox v1 to v2

Posted 30 August 2017 - 06:58 AM

Do you have the 'api v2 java sdk'?
https://github.com/d...ropbox-sdk-java

Do you need to feed in the app key as a second parameter to 'startOAuth2Authentication'?
Was This Post Helpful? 0
  • +
  • -

#3 Nova6112  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 90
  • Joined: 28-November 14

Re: How can i migrate my android application from Dropbox v1 to v2

Posted 04 September 2017 - 12:02 AM

View Postmodi123_1, on 30 August 2017 - 06:58 AM, said:

Do you have the 'api v2 java sdk'?
https://github.com/d...ropbox-sdk-java

Do you need to feed in the app key as a second parameter to 'startOAuth2Authentication'?

Hello,

I have added "compile 'com.dropbox.core:dropbox-core-sdk:3.0.3'" this in my build.gradle and for testing i just added code for Login as "Auth.startOAuth2Authentication(UserActivity.this, getString(R.string.app_key));" as i got referenced from Here But still i am getting that error message please refer attached screenshot. Is this the code for Auth2

This post has been edited by Nova6112: 04 September 2017 - 12:03 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1