accountmanager

How can I get the default phone and SIM contact's ACCOUNT_TYPE and ACCOUNT_NAME?

不羁岁月 提交于 2021-02-17 04:45:05
问题 I want to get the default phone and SIM ACCOUNT_NAME and ACCOUNT_TYPE. On some devices, when I try to save a contact, it is not showing in the default Contact app of the device (like SONY or ASUS). It doesn't work when I try to pass null at ACCOUNT_NAME and ACCOUNT_TYPE, when saving the contact by bulk insertion. 回答1: Each device maker puts whatever it wants as the account type and name for the phone's phone-contacts, I've compiled a list for the major makers here: https://stackoverflow.com/a

How can I get the default phone and SIM contact's ACCOUNT_TYPE and ACCOUNT_NAME?

情到浓时终转凉″ 提交于 2021-02-17 04:44:23
问题 I want to get the default phone and SIM ACCOUNT_NAME and ACCOUNT_TYPE. On some devices, when I try to save a contact, it is not showing in the default Contact app of the device (like SONY or ASUS). It doesn't work when I try to pass null at ACCOUNT_NAME and ACCOUNT_TYPE, when saving the contact by bulk insertion. 回答1: Each device maker puts whatever it wants as the account type and name for the phone's phone-contacts, I've compiled a list for the major makers here: https://stackoverflow.com/a

How can I get the default phone and SIM contact's ACCOUNT_TYPE and ACCOUNT_NAME?

南楼画角 提交于 2021-02-17 04:44:15
问题 I want to get the default phone and SIM ACCOUNT_NAME and ACCOUNT_TYPE. On some devices, when I try to save a contact, it is not showing in the default Contact app of the device (like SONY or ASUS). It doesn't work when I try to pass null at ACCOUNT_NAME and ACCOUNT_TYPE, when saving the contact by bulk insertion. 回答1: Each device maker puts whatever it wants as the account type and name for the phone's phone-contacts, I've compiled a list for the major makers here: https://stackoverflow.com/a

Rare exception “android.accounts.AuthenticatorException: ServiceDisabled” - what does this means?

痞子三分冷 提交于 2021-02-05 09:34:28
问题 EDIT 3 (Jully) Problem is now back again! android.accounts.AuthenticatorException: ServiceDisabled So my email app is not able to connect to GMail anymore. Can anybody help? Thanks EDIT 2 (March 7) Maybe the creation of an "ID clients OAuth 2.0" for Android is solving this issue.. This ID has to be created on this page https://console.developers.google.com/apis/credentials Investigation ongoing.. EDIT I think this is related to this https://wordpress.org/support/topic/be-careful-everybody-who

Android Adding Account with AccountManager

感情迁移 提交于 2021-01-27 17:13:31
问题 Hey guys im trying to add an account with androids accountManager, I keep getting this stack trace below. Guys I cant post all of my code cause I break the limit that Stack Overflow allows me to enter. so ill only post snippets of code you request cause there is WAY more code for this. Sorry for the messy code im just messing around with it till I can get it to work then ill clean it up. FATAL EXCEPTION: main Process: com.example.rapid.rapid, PID: 6168 java.lang.SecurityException: uid 10335

Android AccountManager across apps: uninstalling the first app that registered the account causes the account to be deleted?

↘锁芯ラ 提交于 2020-03-17 10:54:08
问题 What we want to achieve: cross app single sign on We have 2 apps (app A and app B) that we would like to share the same user account. That is, when a user logs into app A, they will be automatically logged in app B, and the other way around. What we have done We created a custom authenticator (extending AbstractAccountAuthenticator etc) to retrieve auth tokens from our service to ensure users are logged into our apps. We pulled the authenticator into two different apps (app A and app B) that

Retrieving auth token for facebook account configured in mobile via account manager in android

笑着哭i 提交于 2020-01-25 07:43:05
问题 I am trying to get Auth token for a facebook account configured in device via account manager in android using accountManager.getAuthToken(account,"user_activities",null,Hellol10n.this, new GetAuthTokenCallback(), null);// account is of type "com.facebook.auth.login" But i dont get any result. The callback is not getting invoked at all. Does facebook support this way of getting auth token. Facebook do use oauth2. So have a look at This lesson demonstrates connecting to a Google server that

Store additional data in Android Account Manager

喜欢而已 提交于 2020-01-13 07:40:30
问题 I'd like to use the android AccountManager to sync my webservice and application (standard sync of contacts and calander) however, AccountManager only appears to store a username and password. My web service takes three credentials: a username, a password and an account. What is the best practice for storing the third piece of information? 回答1: As pablisco explained, you can use AccountManager's ability to store arbitrary user data through addAccountExplicitly()'s userData Bundle parameter: