私のアプリケーションは、OAuth 認証を使用するサーバーに接続します。このようなアカウントを Account Manager に保存するにはどうすればよいですか? ログインしてパスした場合、次のようになります。
Account account = new Account("user1", context.getString(R.string.ACCOUNT_TYPE));
AccountManager am = AccountManager.get(context);
if (am.addAccountExplicitly(account, "pass1", null)) {
result = new Bundle();
Log.i(TAG, "account: "+account.name+", "+account.type);
result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name);
result.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type);
activity.setAccountAuthenticatorResult(result);
しかし、OAuth アカウントの場合、ユーザー名とパスの代わりに何を渡す必要がありますか? また、OAuth シークレットはどこに保存すればよいですか? OAuth トークンは KEY_AUTHTOKEN に格納する必要がありますか?