How can I determine on Android 8 and above devices if a Google Account is available. Since Android 8 (Target SDK 26) the following code returns an empty result
Account[] accArray = accMan.getAccountsByType("com.google");
Several other developers that work with getAccountsByType have the same problem Android: AccountManager.getAccounts() returns an empty array
I don't want to access data from the account. I just want to determine if a specific type (here com.google) is present.