카카오톡이 설치되어 있는 경우에는 아무문제없이 잘되는데
카카오톡 미설치시 카카오계정으로 로그인을 하면
이코드가 실행되는 과정에서 Session.getCurrentSession().handleActivityResult(requestCode, resultCode, data)
아래와 같은 에러가 나타납니다.
====================================================================================
02-11 10:32:50.531 9018-9018 E/kakao.sdk: AUTHORIZATION_FAILED: Failed to get Authorization Code.
at com.kakao.auth.authorization.authcode.KakaoAuthCodeManager.onAuthCodeReceived(KakaoAuthCodeManager.java:248)
at com.kakao.auth.authorization.authcode.KakaoAuthCodeManager.tryNextAuthCodeService(KakaoAuthCodeManager.java:124)
at com.kakao.auth.authorization.authcode.KakaoAuthCodeManager.handleActivityResult(KakaoAuthCodeManager.java:167)
at com.kakao.auth.Session.handleActivityResult(Session.java:575)
at com.view.member.activity.LoginActivity.onActivityResult(LoginActivity.java:152)
at android.app.Activity.dispatchActivityResult(Activity.java:7276)
at android.app.ActivityThread.deliverResults(ActivityThread.java:4264)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4312)
at android.app.ActivityThread.-wrap19(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1644)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
===================================================================================
이유가 뭘까요? ㅜㅜ
카카오톡이 설치가 안되어있는 경우에는 저코드를 건너 뛰어야 되는 건가요?