Questions tagged [android-account]

Android Account refers to the object public class Account as part of the mobile operating system Android that acts as a Value type that represents an Account in the AccountManager public class. Use this tag for questions related to this public class.

Android Account refers to the object public class Account as part of the mobile operating system Android that acts as a Value type that represents an Account in the AccountManager public class. Use this tag for questions related to this public class.

Documentation: https://developer.android.com/reference/android/accounts/package-summary

106 questions
1
vote
1 answer

Disable silent access to account in account manager from 3rd party apps

Hi I have a question related to Android's account manager.. My app injects an account into it, thus it is accessible also by other apps installed on the device. I thought that once any app would ask the system for the data stored in the account, it…
simekadam
  • 7,334
  • 11
  • 56
  • 79
1
vote
1 answer

ContentResolver.requestSync <= send extras to => SyncAdapter.onPerformSync

I use a SyncAdapter to sync my data with the server. Everything works, but I have a hard time sending extras to SyncAdapter. In my ContentObserver I use the following code to send request to SyncAdapter: @Override public void onChange(boolean…
1
vote
0 answers

My application accounts disappear after reboot

I'm saving accounts for my application, saving works well and accounts are saved and accessible trough accounts and sync menu in settings. On some devices after reboot the account disappears. I detected it on old devices Samsung Galaxy Tab running…
L. G.
  • 9,642
  • 7
  • 56
  • 78
1
vote
1 answer

How to revoke/cancel account authorization given to an application on an Android device

I'm working on an integration with Google Calendar API. In order to get the authorization to access the calendar of the specific account, I use this snippet from the Calendar-Android-Sample Project: if (e instanceof UserRecoverableAuthIOException)…
1
vote
1 answer

Android AccountManager Is it possible to customise the layout that returns a list of accounts when using getAuthTokenByFeatures

When I make a call to AccountManager.get(this).getAuthTokenByFeatures(Constants.ACCOUNT_TYPE, Constants.AUTHTOKEN_TYPE, null, this, null, null, new AccountManagerCallback() This is set up in my implementation for…
jamesc
  • 12,423
  • 15
  • 74
  • 113
1
vote
1 answer

Advangates of using addAccount over exporting LoginActivity in another app?

Context: Suppose we have two Android apps installed, A that contains a custom Authenticator code and can add new accounts to AccountManager, and B that we want to have single-touch sign in flow. You can assume the account has not yet been created in…
karni
  • 894
  • 8
  • 15
1
vote
1 answer

Are apps that access gmail only have write-only access or full gmail access (potential security risk?)

I use a backup app to backup SMS text messages to my GMail account registered on my HTC Desire Z Android 2.3 phone. The app requests access to the gmail account. But what does this actually mean? Does it mean: the application has write-only access…
therobyouknow
  • 6,604
  • 13
  • 56
  • 73
0
votes
0 answers

How to modify a file on the google drive from multiple android devices?

I have a specific google account and a file on it. I want to modify the file from a few android devices without having to log in to this account (User don't have a permission to use this account). I also don't want user to access this file manually…
0
votes
1 answer

Adding custom rows to contact details, only works with one contact

In an android app, I added a custom row to contact details with a custom mimetype to open my app on a specific activity. It works well if I do it to one contact, but if I try to add it to all my contacts, the custom row doesn't appear. I'm using the…
0
votes
0 answers

Where/how to store sensitive information?

I am currently working on an Android Application and I have no other choice to store some sensitive information like a username and a password in order to authenticate automatically a user. I know that is a very very very bad practice, I since the…
0
votes
2 answers

Edit Call history names

I've implemented a contacts app, and I would like my application's contact names to be displayed in the device's call log history (Phone app) in case I receive/make a call to these numbers. How could I achieve that?
0
votes
1 answer

AccountManager.newChooseAccountIntent without asking to create account

I want the user to choose an existing account from my Android App. I'm using Intent googlePicker = AccountManager .newChooseAccountIntent(null, null, new String[]{GoogleAuthUtil.GOOGLE_ACCOUNT_TYPE}, true, null, null, null,…
poqueque
  • 276
  • 3
  • 14
0
votes
1 answer

Not able to find android.provider.CONTACTS_STRUCTURE metadata of contact apps

I am trying to get the list of contact writable accounts in my device using the following code public static final String SYNC_META_DATA = "android.content.SyncAdapter"; public static final String[] METADATA_CONTACTS_NAMES = new…
0
votes
1 answer

Custom account type for secondary user in Android N

My application provides a custom account type, which can be created via Preferences->Accounts->Add account Everything works as expected. However, when I change to a non-primary user, my custom user account is not on the list, so I cannot create…
0
votes
2 answers

Remove custom account ACCOUNT_TYPE from contacts

I have created a custom account and i have added few contacts to that account. So now i want to remove the account from those contacts. I'm Googling since few weeks but i'm not able to find anything. If anyone knows how to do then please help me…