Code example for AccountAuthenticatorResponse

Methods: onResult

0
	 
	public static void addAccount(Context ctx, String username, String password, Parcelable response) {
		AccountAuthenticatorResponse authResponse = (AccountAuthenticatorResponse)response;
		Bundle result = AccountAuthenticatorImpl.addAccount(ctx, username, password);
		if(authResponse != null)
			authResponse.onResult(result);
	} 
	 
	public static Boolean hasLastfmAccount(Context ctx) {
		return AccountAuthenticatorImpl.hasLastfmAccount(ctx);
	} 
	 
	public static void removeLastfmAccount(Context ctx) {
		AccountAuthenticatorImpl.removeLastfmAccount(ctx);
	} 
	 
	public static void resyncAccount(Context context) {
		Editor editor = PreferenceManager.getDefaultSharedPreferences(LastFMApplication.getInstance()).edit();
		editor.putBoolean("do_full_sync", true);
		editor.commit();
		AccountManager am = AccountManager.get(context);