Android Question Problems showing Google accounts list

Ivan Aldaz

Member
Licensed User
Longtime User
Hi.

I'm trying to show Google accounts using Erel's code from this post, exactly as is:

https://www.b4x.com/android/forum/t...e-java-accountpicker-to-b4a.89900/post-568622

... setting "Private ion as Object" in Process_Globals, adding also in the code the #AdditionalJar file indicated, but get the error "java.lang.RuntimeException: Method: startActivityForResult not matched."

I've seen on "Android Developers" page that this method is deprecated, and don't know if the error is related to it:

https://developers.google.com/android/reference/com/google/android/gms/common/AccountPicker#newChooseAccountIntent(com.google.android.gms.common.AccountPicker.AccountChooserOptions)

Also I wouldn't know how to set "AccountPicker.AccountChooserOptions" to implement the new method, because my Java knowledge is almost zero.

Any help, please?
 

Ivan Aldaz

Member
Licensed User
Longtime User
Yes, the #AdditionalJar line is in the project and activity attributes area, before the Sub 'Process_Globals' begins. "Private ion as Object" is declared in Sub Process_Globals, the GooglePlayBase services snippet is added to the manifest file, and yesterday I updated the SDK . Maybe I'm missing some library? Could it be related to any permission?
 
Last edited:
Upvote 0

hatzisn

Expert
Licensed User
Longtime User
Have a look at this:
 
Last edited:
Upvote 0
Top