Here is:
Version 2 of the authenticator (now works with multiple apps. Still each app MUST have it's own consumer_key and consumer_secret).
new protocoll:
AccountManager mgr = (AccountManager)getSystemService(Context.ACCOUNT_SERVICE);
final Bundle options = new Bundle();
options.putString("consumer_key", CONSUMER_KEY);
options.putString("consumer_secret", CONSUMER_SECRET);
AccountManagerFuturefuture = mgr.getAuthToken(account, "key"options, this, null, mHandler );
Bundle result = future.getResult();
String key = result.getString(AccountManager.KEY_AUTHTOKEN);
future = mgr.getAuthToken(account, "secret",options, this, null, mHandler);
result = future.getResult();
String secret = result
DropboxAuthenticator.apk
SendToDropbox.apk
DropboxFolderSync.apk - still ALPHA and thus not release. At this stage it WILL destroy your files in the shared folder.
Keine Kommentare:
Kommentar veröffentlichen