Android Open Source - Tiny-Journal Journal Authenticator






From Project

Back to project page Tiny-Journal.

License

The source code is released under:

GNU General Public License

If you think the Android project Tiny-Journal listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.ubergrund.android.tinyjournal;
/* w  w w. ja va 2  s .  co  m*/
import android.accounts.AbstractAccountAuthenticator;
import android.accounts.Account;
import android.accounts.AccountAuthenticatorResponse;
import android.accounts.NetworkErrorException;
import android.content.Context;
import android.os.Bundle;

/**
 * Created with IntelliJ IDEA.
 * User: Tim
 * Date: 10/28/13
 * Time: 7:45 AM
 */
public class JournalAuthenticator extends AbstractAccountAuthenticator {

    public static final String ACCOUNT_TYPE = "com.ubergrund.android.tinyjournal.account";

    public JournalAuthenticator(Context context) {
        super(context);
    }

    @Override
    public Bundle editProperties(AccountAuthenticatorResponse accountAuthenticatorResponse, String s) {
        throw new UnsupportedOperationException();
    }

    @Override
    public Bundle addAccount(AccountAuthenticatorResponse accountAuthenticatorResponse, String s, String s2, String[] strings, Bundle bundle) throws NetworkErrorException {
        return null;
    }

    @Override
    public Bundle confirmCredentials(AccountAuthenticatorResponse accountAuthenticatorResponse, Account account, Bundle bundle) throws NetworkErrorException {
        return null;
    }

    @Override
    public Bundle getAuthToken(AccountAuthenticatorResponse accountAuthenticatorResponse, Account account, String s, Bundle bundle) throws NetworkErrorException {
        throw new UnsupportedOperationException();
    }

    @Override
    public String getAuthTokenLabel(String s) {
        throw new UnsupportedOperationException();
    }

    @Override
    public Bundle updateCredentials(AccountAuthenticatorResponse accountAuthenticatorResponse, Account account, String s, Bundle bundle) throws NetworkErrorException {
        throw new UnsupportedOperationException();
    }

    @Override
    public Bundle hasFeatures(AccountAuthenticatorResponse accountAuthenticatorResponse, Account account, String[] strings) throws NetworkErrorException {
        throw new UnsupportedOperationException();
    }
}




Java Source Code List

com.ubergrund.android.tinyjournal.AuthenticatorService.java
com.ubergrund.android.tinyjournal.JournalAuthenticator.java
com.ubergrund.android.tinyjournal.JournalContentProvider.java
com.ubergrund.android.tinyjournal.JournalSyncAdapter.java
com.ubergrund.android.tinyjournal.MyActivity.java
com.ubergrund.android.tinyjournal.SyncService.java