Fatal Exception: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
at android.app.ContextImpl.startActivity + 922(ContextImpl.java:922)
at android.app.ContextImpl.startActivity + 898(ContextImpl.java:898)
at android.content.ContextWrapper.startActivity + 389(ContextWrapper.java:389)
at com.kakao.kakaolink.v2.KakaoLinkService$19.onCustomTabsServiceConnected + 513(KakaoLinkService.java:513)
at android.support.customtabs.CustomTabsServiceConnection.onServiceConnected + 33(CustomTabsServiceConnection.java:33)
at android.app.LoadedApk$ServiceDispatcher.doConnected + 1738(LoadedApk.java:1738)
at android.app.LoadedApk$ServiceDispatcher$RunConnection.run + 1770(LoadedApk.java:1770)
at android.os.Handler.handleCallback + 873(Handler.java:873)
at android.os.Handler.dispatchMessage + 99(Handler.java:99)
at android.os.Looper.loop + 201(Looper.java:201)
at android.app.ActivityThread.main + 6806(ActivityThread.java:6806)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run + 547(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main + 873(ZygoteInit.java:873)
카카오 링크 공유하기 중 위의 에러가 나와 확인요청드립니다.
kakao link 1.21.1 Version 사용중이며,
FLAG_ACTIVITY_NEW_TASK flag가 없다고 나오고 있습니다.