Android Question Delete Google Account with "removeAccount"

Zockolade

Member
Licensed User
Longtime User
Hello, has anyone already used the "removeAccount" class of the AccountManager?

Is it easy to use with JavaObject? What do I have to consider or does someone have a solution for me?

Thank you :)
 

DonManfred

Expert
Licensed User
Longtime User
Removes an account from the AccountManager. Does nothing if the account does not exist. Does not delete the account from the server. The authenticator may have its own policies preventing account deletion, in which case the account will not be deleted.

This method may be called from any thread, but the returned AccountManagerFuture must not be used on the main thread.

This method requires the caller to have a signature match with the authenticator that manages the specified account.

NOTE: If targeting your app to work on API level 22 and before, MANAGE_ACCOUNTS permission is needed for those platforms. See docs for this function in API level 22.
Requires android.Manifest.permission.MANAGE_ACCOUNTS

I never used it though...
 
Last edited:
Upvote 0
Top