Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
alca
8 years agoExplorer | Level 3
Android authentication
In the previous api login could be performed to the device dropbox account by using the api key and the api secret, is there any way to do this with V2? What a I need is to be able to connect to dife...
alca
8 years agoExplorer | Level 3
Im not sure if I´m doing this OK, but this is what I do and application crushes:
Auth.startOAuth2Authentication(this, this.RASVIET_APP_KEY_V2);
String accessToken = Auth.getOAuth2Token();
this is an activitie that
extends PreferenceActivity
and rasviet_app_key_v2 is my key for the app
Greg-DB
Dropbox Community Moderator
8 years agoAre you calling startOAuth2Authentication and getOAuth2Token together like that? You should use just startOAuth2Authentication to initiate the app authorization flow. You should then later call getOAuth2Token to complete the app authorization flow in onResume. (Please refer to the samples linked in my previous post.)
Otherwise, please share the full error/output you're getting.
Otherwise, please share the full error/output you're getting.
- alca8 years agoExplorer | Level 3
I am using 3.0.3 dropbox core sdk and it doesnt find v7 in android.support.v7.app.AppCompatActivity
- Greg-DB8 years ago
Dropbox Community Moderator
Can you share the steps and code to reproduce the issue? Thanks in advance!- alca8 years agoExplorer | Level 3
In build.grade file I add this:
dependencies {
compile files('libs/dropbox-core-sdk-3.0.3.jar')
}and add the jar with that name under the libs folder, then I create a new class just as the example with this code:
package com.rasviet.mobility.sincro;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import com.dropbox.core.android.Auth;
/**
* Created by Jritxal on 01/08/2017.
*/
public class DropboxActivity extends AppCompatActivity {
}and it says it cannont resolve v7 that apears in red and so does AppCompatActivity ofc.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!