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
0 answers

Google Sign In Account Type using Auth.GoogleSignInApi.getSignInIntent

I've come across two ways of creating the intent for Google Sign In: 1. private void signIn() { Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(mGoogleApiClient); startActivityForResult(signInIntent,…
Decimal
  • 103
  • 1
  • 8
1
vote
0 answers

Adding custom field to the contact card without accounts

I'd like to add custom (related to my app) fields to the contact card, for instance, "Message XXXX" or "Call XXXX" on the XXXX contact card irrespective of whether XXXX has an account in my app. As in, my application should append these fields in…
1
vote
1 answer

Auth.GoogleSignInApi as GoogleAuthUtil replacement for google plus sign in

My goal is to log into a BaaS with the Google plus sdk, the BaaS requires a tokenId via googleSignInAccount.getIdToken() and an accessToken. GoogleAuthUtil.getToken(activity, accountName, scopes); is depreciated, and was used to get the…
ersin-ertan
  • 2,283
  • 2
  • 18
  • 27
1
vote
1 answer

How to get notified when an account is add to or remove from device?

I want to set a BroadcastReceiver to get notified when an account is removed from the device. What IntentFilter should I use in my BroadcastReceiver. I couldn't find any related intent. Thanks
1
vote
0 answers

Is the Current active user profile the Owner?

Starting from Lollipop, Android introduced Multiple user profiles.Where user can add new user or a guest user.My application will be installed in Owner profile.When a message is received to my application it play audio on loudspeaker. So Basically i…
Meher
  • 2,545
  • 3
  • 26
  • 53
1
vote
1 answer

Check user account on android m

I'm trying to check if there is any user account (with email address) on an Android-M device. I don't care what's the mail or how many are there, just a yes/no question. Can I check it with normal and not dangerous permissions? Thanks.
1
vote
1 answer

how to share login data between two android application like Facebook app and facebook messsenger

i am developing two apps with login functionality like APP1 and APP2 i want login user session which logged in in APP1 like Facebook App and Facebook messenger App. how can i share my login session of APP1 with APP2?
1
vote
1 answer

Call getAccounts or getAccountsByType for our own app without GET_ACCOUNTS permission

My app already acts as an authenticator, and I just want to check whether a specified account, whose type belongs to my app, already exists. We can create a new account using AccountManager#addAccountExplicitly without the GET_ACCOUNTS permission,…
Randy Sugianto 'Yuku'
  • 71,383
  • 57
  • 178
  • 228
1
vote
0 answers

Bug to insert calendar on Samsung Galaxy devices

I have a bug that only happens in the Samsung Galaxy Tab, Samsung Galaxy Win Duos and Samsung Galaxy S Duos. I am trying to insert a linked calendar to an application account: Uri calUri = CalendarContract.Calendars.CONTENT_URI; …
1
vote
0 answers

Android in app purchase-query inventory returns null after deleting and re-adding account

I have implemented in app purchase to my application by following the google's documentation. Everything works fine as expected, I can purchase items and after deleting the application I can restore my managed purchases with this code there has been…
nexx
  • 579
  • 1
  • 7
  • 17
1
vote
0 answers

How to add my Android Application on Android Account Settings?

I've developed an Android project and I want to setup my project on the Account section of settings page of my phone, so that anybody can easily add an account form settings page. Such as anybody can add a google,facebook,viber account from…
Sabbir
  • 1,374
  • 1
  • 15
  • 23
1
vote
2 answers

How Can I Get email ids of Yahoo/Microsoft Account

Is it possible to get Yahoo/Microsoft email id/ ids which are configured with PlayStore app in android device. I use com.yahoo.mobile.client.share.sync for Yahoo. But Not Working .May I know what is the correct way to achieve my objective? Here is…
user3177895
1
vote
1 answer

Phonegap plugin (Version >=3.0) to retrieve registered email address of an Android device

I need to get the registered email of an Android device within my Cordova App. I currently have a Cordova 3.3.0 app working; and I could only find the Cordova plugin for version 2.5 at this place This plugin is not compatible with the version I am…
1
vote
2 answers

"lead to deadlock" error when doing a certain activity multiple times

I'm testing my app on a device and after doing a certain activity 5 or 6 times, the app crashes with error: java.lang.IllegalStateException: calling this from your main thread can lead to deadlock The activity is simple: User puts in a task and…
Anthony
  • 33,838
  • 42
  • 169
  • 278
1
vote
2 answers

After AccountManager..getAuthToken, how to send that token to its provider to authenticate something?

We're writing an app with an Android view and a website. Our app needs to associate some data with Facebook, Google, or Twitter (call them 'FGT'), and then hit the associated service to return true if that data is authenticated. The control flow…
Phlip
  • 5,253
  • 5
  • 32
  • 48