Android - Add Account

YouTube solution

Update: as posted by Derek in the comments and by some other people in various help forums:

Reportedly this works for most people who have tried it.

If it doesn't work and for those interested, here's my original little workaround project:

App solution

There's a bug in Android currently (up to 2.1) where you can't add more accounts anymore. The usual error is:

Can't establish a reliable data connection to the server.

The solution is to do a factory reset and add your new accounts on the fresh system, which usually works. Not very comfortable.

I recently had the same problem again, even did a reset and still couldn't get it to work, so I tried to solve it by doing it manually in an app. Luckily that was successful.

I don't know whether there are dangers in this or some important initialization isn't done. But it works fine for me.

I put up the source code and a compiled app package, see downloads. Use at your own risk.

Update

How To

That is all. I hope it's helpful.

Note: some people have reported an error like this:

Error: java.lang.SecurityException: caller uid 12345 is different than the authenticator's uid.

I'm not sure yet why this happens for some and how it could be fixed.

Code

The relevant snippet:

AccountManager man = (AccountManager) getSystemService(ACCOUNT_SERVICE);
Account account = new Account("somewhere@domain.com", "com.google");
if (man.addAccountExplicitly(account, null, new Bundle())) {
    // worked
} else {
    // guess not
}

As you can see there is no password given.

Note that this does no checks whatsoever about the validity of the account or the password. That'll be done after the reboot. The snippet really just ADDS the account dumbly.

 

Comments

Show older comments

Apokoalosom 04:24 June 23, 2017

<a href="http://viagra1onxdz.soup.io/">alternative zu viagra ohne rezept</a> [url=http://viagra97wulk.soup.io/]viagra online holland bestellen[/url] http://atrovent44qlb9.soup.io/ atrovent dosieraerosol preis

Apokoalosom 04:26 June 23, 2017

<a href="http://diovanjfvkbh.soup.io/">generika diovan 80</a> [url=http://dapoxetinef23g4j.soup.io/]dapoxetine 60 mg kaufen[/url] http://kamagra2z22tt.soup.io/ kamagra nachnahme kaufen

Zriannof 04:44 June 23, 2017

viagra order on line

[url=http://viagra-withoutdoctor.net]viagra without a doctor prescription[/url] viagra 10mg password

<a href="http://viagra-withoutdoctor.net">viagra without a doctor prescription</a> - viagra coupon code last post

viagra drug

Продвижение вашего сайта в ТОП 05:03 June 23, 2017

Здравствуйте! Хотел бы предложить Вам свою услугу раскрутки вашего ресурса ссылками. На сегодня имеется статейный и профильный тарифы.

Если желаете, отпишите плиз на электр. почту--> proxrum @ mail.ru (уберите пробелы). Если нет, то смотрите [url=http://novinki-kino.com/]новинки кино[/url]!:)

=============

С Уважением!

AlfredMop 05:17 June 23, 2017

wh0cd669801 [url=http://abilify24.us.org/]Abilify[/url]

Add comment