android.accounts.AuthenticatorException: bind failure -


i getting following exception; know not go on, there seems little no working documentation out there. suffice say, have tried examples on implementing own authenticator.

i have found proposed answer here fix manifest-file (declaring service). had done that, problem persisting.

my initial solution based on this example: write-your-own-android-authenticator

w/system.err﹕ android.accounts.authenticatorexception: bind failure  w/system.err﹕ @ android.accounts.accountmanager.converterrortoexception(accountmanager.java:2024)  w/system.err﹕ @ android.accounts.accountmanager.access$400(accountmanager.java:144)  w/system.err﹕ @ android.accounts.accountmanager$amstask$response.onerror(accountmanager.java:1867)  w/system.err﹕ @ android.accounts.iaccountmanagerresponse$stub.ontransact(iaccountmanagerresponse.java:69)  w/system.err﹕ @ android.os.binder.exectransact(binder.java:446) 

bro , had same situation. searched everywhere no luck. there few resources , tutorials android authenticator. used same source udinic:write own android authenticator.

it lame , small error. changed accounttype in authenticator.xml , forgot change in accountgeneral class. both should same, otherwise activity won't bind authenticatorservice callbacks.

**authenticator.xml

<?xml version="1.0" encoding="utf-8" ?><account-authenticator  xmlns:android="http://schemas.android.com/apk/res/android"     android:accounttype="com.alfainfinity.fidodo"     android:icon="@drawable/ic_navigate_before"     android:smallicon="@drawable/ic_navigate_before"     android:label="@string/label"     android:accountpreferences="@xml/prefs"/> 

**accountgeneral.java

package com.alfainfinity.fitdodo.boundary.handlers.accounthandlers;  public class accountgeneral {  /**  * account type id  */ public static final string account_type = "com.alfainfinity.fidodo";  /**  * account name  */ public static final string account_name = "fitdodo";  /**  * auth token types  */ public static final string authtoken_type_read_only = "read only"; public static final string authtoken_type_read_only_label = "read access fitdodo account";  public static final string authtoken_type_full_access = "full access"; public static final string authtoken_type_full_access_label = "full access fitdodo account";  public static final serverauthenticate sserverauthenticate = new parsecomserverauthenticate(); 

}

i hope find helpful.


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -