I want to add a google account Explicitly. I will provide username and Password.
I just Gone through this Question caller uid XXXX is different than the authenticator's uid But i didnt get solution. What is uid? to which uid it comparing.
I am trying
AccountManager mgr = (AccountManager)getSystemService(ACCOUNT_SERVICE);
Account acc = new Account("xxxj@gmail.com", "com.google");
if(mgr.addAccountExplicitly(acc, "Password", new Bundle()))
{
//account added successfully
//do whatever is needed;
showToast("added");
}
else {
//something did not work
}
Error: Caller uid 10782 is different than authenticator's uid .
What it means? how do i correct it?
Any one please tell me how to solve this a complete code will be very helpful.