I'm making an Android App using Eclipse. I want to implement a feature that shares a file on my dropbox account so I downloaded the sdk.
I'm following official documentation here: https://www.dropbox.com/developers/start/authentication#android
so I wrote this code in Import Section:
import com.dropbox.client2.DropboxAPI;
import com.dropbox.client2.android.AndroidAuthSession;
import com.dropbox.client2.session.AppKeyPair;
import com.dropbox.client2.session.Session.AccessType;
This code in classe declaration
final static private String APP_KEY = "*****";
final static private String APP_SECRET = "****";
private DropboxAPI<AndroidAuthSession> mDBApi;
and this code in my method:
com.dropbox.client2.session.AppKeyPair appKeys = new com.dropbox.client2.session.AppKeyPair(APP_KEY, APP_SECRET);
AndroidAuthSession session = new AndroidAuthSession(appKeys,AccessType.APP_FOLDER);
mDBApi = new DropboxAPI<AndroidAuthSession>(session);
But when I debug first line of method I have this error:
01-02 17:07:54.459: E/dalvikvm(19602): Could not find class 'com.dropbox.client2.session.AppKeyPair', referenced from method com.example.myfirstapp.DbAccess.ShareDbOnDropbox
Please, can you help me?
Thank you very much!