rogalabs / social-login Goto Github PK
View Code? Open in Web Editor NEWVery simple implementaion for social login on android
License: MIT License
Very simple implementaion for social login on android
License: MIT License
08-01 16:48:02.451 20917-20917/com.xeme.motolift_messenger E/AndroidRuntime: FATAL EXCEPTION: main Process: com.xeme.motolift_messenger, PID: 20917 java.lang.RuntimeException: Unable to resume activity {com.xeme.motolift_messenger/com.xeme.motolift_messenger.ui.activity.MainActivity}: java.lang.IllegalStateException: Already managing a GoogleApiClient with id 0 at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2986) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3017) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1347) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) Caused by: java.lang.IllegalStateException: Already managing a GoogleApiClient with id 0 at com.google.android.gms.common.internal.zzaa.zza(Unknown Source) at com.google.android.gms.internal.zznr.zza(Unknown Source) at com.google.android.gms.common.api.GoogleApiClient$Builder.zze(Unknown Source) at com.google.android.gms.common.api.GoogleApiClient$Builder.build(Unknown Source) at com.rogalabs.lib.google.LoginGooglePresenter.start(LoginGooglePresenter.kt:32) at com.rogalabs.lib.LoginView.onStart(LoginView.kt:39) at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1236) at android.app.Activity.performStart(Activity.java:6006) at android.app.Activity.performRestart(Activity.java:6063) at android.app.Activity.performResume(Activity.java:6068) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2975) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3017) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1347) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) 08-01 16:53:02.483 20917-20917/com.xeme.motolift_messenger I/Process: Sending signal. PID: 20917 SIG: 9
fb and g+ login work like charm but it crash when activity resumes.
i tried every thing from my side. also tested my code in different devices. let me know if there are any bugs. thanks you are doing good ... keep up da good work..
Pls update with new google api
Any plan?
Error:(2, 0) Plugin with id 'kotlin-android' not found.
Open File
com.rogalabs.lib.google.LoginGoogleException: Google login not succeed!
Caused by: org.json.JSONException: No value for email
at org.json.JSONObject.get(JSONObject.java:389)
at org.json.JSONObject.getString(JSONObject.java:550)
at com.rogalabs.lib.facebook.LoginFacebookPresenter.buildSocialUser(LoginFacebookPresenter.kt:99)
at com.rogalabs.lib.facebook.LoginFacebookPresenter.onCompleted(LoginFacebookPresenter.kt:79)
at com.facebook.GraphRequest$1.onCompleted(GraphRequest.java:295)
at com.facebook.GraphRequest$5.run(GraphRequest.java:1243)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
Facebook button onclick this errror
its only happen with compile 'com.google.android.exoplayer:exoplayer:r2.3.1'
update your sample with new vertion
Log in attempt failed: LoginActivity could not be started at com.facebook.login.LoginManager.startLogin(LoginManager.java:382) at com.facebook.login.LoginManager.logInWithReadPermissions(LoginManager.java:262) at com.rogalabs.lib.facebook.LoginFacebookPresenter.signIn(LoginFacebookPresenter.kt:61) at com.rogalabs.lib.LoginView.loginWithFacebook(LoginView.kt:81)
com.rogalabs.lib.google.LoginGoogleException
Google login not succeed!
got error when return to activity @oliveiradev @rossiter @thiagoramos23 @rafaelgaiaduarte
While switching to and back from one activity to another Brings " java.lang.IllegalStateException: Already managing a GoogleApiClient with id 0" error. Tried finishing the GoogleApiClient but it inaccessible in the activity.
01-30 15:14:39.941 25374-25374/startek.mikolo E/AndroidRuntime: FATAL EXCEPTION: main
Process: startek.mikolo, PID: 25374
java.lang.RuntimeException: Unable to resume activity {startek.mikolo/startek.mikolo.activity.LoginActivity}: java.lang.IllegalStateException: Already managing a GoogleApiClient with id 0
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3314)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3370)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1532)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:5763)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)
Caused by: java.lang.IllegalStateException: Already managing a GoogleApiClient with id 0
at com.google.android.gms.common.internal.zzaa.zza(Unknown Source)
at com.google.android.gms.internal.zzqm.zza(Unknown Source)
at com.google.android.gms.common.api.GoogleApiClient$Builder.zzf(Unknown Source)
at com.google.android.gms.common.api.GoogleApiClient$Builder.build(Unknown Source)
at com.rogalabs.lib.google.LoginGooglePresenter.start(LoginGooglePresenter.kt:32)
at com.rogalabs.lib.LoginView.onStart(LoginView.kt:39)
at startek.mikolo.activity.LoginActivity.onStart(LoginActivity.java:115)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1245)
at android.app.Activity.performStart(Activity.java:6391)
at android.app.Activity.performRestart(Activity.java:6437)
at android.app.Activity.performResume(Activity.java:6442)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3299)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3370)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1532)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:5763)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.