java.lang.RuntimeException: Unable to start activity ComponentInfo{com.gsl.fbtaskrakhi/org.appcelerator.titanium.TiActivity}: Unexpected CallbackManager, please use the provided Factory.

Appcelerator JIRA | Rakhi Mitro | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    App is crashing using Facebook Module in 5.2.0.GA . *Test Environment:* Appcelerator Studio, build: 4.5.0.201602170821 Operating System Mac OS X -EI Capitan,Versio-10.11.1 Appcelerator Command-Line Interface, version 5.2.0 SDK Version = 5.2.0.GA Node.js Version = 4.2.2 npm Version = 2.14.7 Android Devices HTC One_M8 Ey android 5.0.2 (android-21) Module Version: 5.0.0 *Test Steps to reproduce:* 1.Create a brand new project using 5.2.0.GA 2.Add in only one module e.g. facebook 3.Build to an Android 5.1.1 device e.g. Nexus 7 4.Run project *Test case:* {code} var win = Ti.UI.createWindow({backgroundColor: 'pink'}); var fb = require('facebook'); fb.addEventListener('login', function(e) { if (e.success) { alert('Logged in'); } }); fb.addEventListener('logout', function(e) { alert('Logged out'); }); if (Ti.Platform.name === 'android') { win.fbProxy = fb.createActivityWorker({lifecycleContainer: win}); } // Add the button. Note that it doesn't need a click event listener. win.add(fb.createLoginButton({ readPermissions: ['read_stream','email'], top: 50 })); win.open(); {code} *Test Result:* App is crashing. Here is the console log. {code} [ERROR] : TiApplication: (main) [13,378] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.gsl.fbtaskrakhi/org.appcelerator.titanium.TiActivity}: Unexpected CallbackManager, please use the provided Factory.; Titanium 5.2.0,2016/02/20 08:05,384775e [ERROR] : TiApplication: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.gsl.fbtaskrakhi/org.appcelerator.titanium.TiActivity}: Unexpected CallbackManager, please use the provided Factory. [ERROR] : TiApplication: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416) [ERROR] : TiApplication: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) [ERROR] : TiApplication: at android.app.ActivityThread.-wrap11(ActivityThread.java) [ERROR] : TiApplication: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) [ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:102) [ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:148) [ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5417) [ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Native Method) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) [ERROR] : TiApplication: Caused by: Unexpected CallbackManager, please use the provided Factory. [ERROR] : TiApplication: at com.facebook.login.LoginManager.registerCallback(LoginManager.java:128) [ERROR] : TiApplication: at com.facebook.login.widget.LoginButton.registerCallback(LoginButton.java:445) [ERROR] : TiApplication: at facebook.LoginButtonView.<init>(LoginButtonView.java:40) [ERROR] : TiApplication: at facebook.LoginButtonProxy.createView(LoginButtonProxy.java:34) [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:492) [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:478) [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:516) [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:500) [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:478) [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:679) [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.add(TiViewProxy.java:573) [ERROR] : TiApplication: at ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:253) [ERROR] : TiApplication: at org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:33) [ERROR] : TiApplication: at org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:524) [ERROR] : TiApplication: at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseAc [ERROR] : TiApplication: at org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:18 {code}

    Appcelerator JIRA | 1 year ago | Rakhi Mitro
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.gsl.fbtaskrakhi/org.appcelerator.titanium.TiActivity}: Unexpected CallbackManager, please use the provided Factory.
  2. 0

    App is crashing using Facebook Module in 5.2.0.GA . *Test Environment:* Appcelerator Studio, build: 4.5.0.201602170821 Operating System Mac OS X -EI Capitan,Versio-10.11.1 Appcelerator Command-Line Interface, version 5.2.0 SDK Version = 5.2.0.GA Node.js Version = 4.2.2 npm Version = 2.14.7 Android Devices HTC One_M8 Ey android 5.0.2 (android-21) Module Version: 5.0.0 *Test Steps to reproduce:* 1.Create a brand new project using 5.2.0.GA 2.Add in only one module e.g. facebook 3.Build to an Android 5.1.1 device e.g. Nexus 7 4.Run project *Test case:* {code} var win = Ti.UI.createWindow({backgroundColor: 'pink'}); var fb = require('facebook'); fb.addEventListener('login', function(e) { if (e.success) { alert('Logged in'); } }); fb.addEventListener('logout', function(e) { alert('Logged out'); }); if (Ti.Platform.name === 'android') { win.fbProxy = fb.createActivityWorker({lifecycleContainer: win}); } // Add the button. Note that it doesn't need a click event listener. win.add(fb.createLoginButton({ readPermissions: ['read_stream','email'], top: 50 })); win.open(); {code} *Test Result:* App is crashing. Here is the console log. {code} [ERROR] : TiApplication: (main) [13,378] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.gsl.fbtaskrakhi/org.appcelerator.titanium.TiActivity}: Unexpected CallbackManager, please use the provided Factory.; Titanium 5.2.0,2016/02/20 08:05,384775e [ERROR] : TiApplication: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.gsl.fbtaskrakhi/org.appcelerator.titanium.TiActivity}: Unexpected CallbackManager, please use the provided Factory. [ERROR] : TiApplication: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416) [ERROR] : TiApplication: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) [ERROR] : TiApplication: at android.app.ActivityThread.-wrap11(ActivityThread.java) [ERROR] : TiApplication: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) [ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:102) [ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:148) [ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5417) [ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Native Method) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) [ERROR] : TiApplication: Caused by: Unexpected CallbackManager, please use the provided Factory. [ERROR] : TiApplication: at com.facebook.login.LoginManager.registerCallback(LoginManager.java:128) [ERROR] : TiApplication: at com.facebook.login.widget.LoginButton.registerCallback(LoginButton.java:445) [ERROR] : TiApplication: at facebook.LoginButtonView.<init>(LoginButtonView.java:40) [ERROR] : TiApplication: at facebook.LoginButtonProxy.createView(LoginButtonProxy.java:34) [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:492) [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:478) [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:516) [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:500) [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:478) [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:679) [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.add(TiViewProxy.java:573) [ERROR] : TiApplication: at ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:253) [ERROR] : TiApplication: at org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:33) [ERROR] : TiApplication: at org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:524) [ERROR] : TiApplication: at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseAc [ERROR] : TiApplication: at org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:18 {code}

    Appcelerator JIRA | 1 year ago | Rakhi Mitro
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.gsl.fbtaskrakhi/org.appcelerator.titanium.TiActivity}: Unexpected CallbackManager, please use the provided Factory.
  3. 0

    Same code but app crashes?

    Stack Overflow | 1 year ago | jcrossley
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.f454.jackc.chiropodist/com.f454.jackc.chiropodist.MainActivity}: java.lang.IllegalArgumentException: AppIndex: The android-app URI host must match the package name and follow the format android-app://<package_name>/<scheme>/[host_path]. Provided URI: android-app://com.f454.jackc.chiropody/http/host/path
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    "You need to use a theme.appcompat theme" with Theme.AppCompat as theme, Sdk v23

    Stack Overflow | 2 years ago | guillaume_fr
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.myapp.android.debug/com.myapp.mobile.activities.HomeActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
  6. 0

    navigate horizontally between two different layouts(2 xml files) in android wear

    Stack Overflow | 12 months ago | MJ123
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.wearable/com.example.wearable.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.wearable.view.GridViewPager.setAdapter(android.support.wearable.view.GridPagerAdapter)' on a null object reference

  1. Hiren 2 times, last 6 days ago
  2. poroszd 1 times, last 1 week ago
  3. Indri Yunita 7 times, last 3 months ago
  4. andreeaa marin 184 times, last 4 months ago
  5. Reich 62 times, last 4 days ago
44 more registered users
15 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.RuntimeException

    Unable to start activity ComponentInfo{com.gsl.fbtaskrakhi/org.appcelerator.titanium.TiActivity}: Unexpected CallbackManager, please use the provided Factory.

    at android.app.ActivityThread.performLaunchActivity()
  2. Android Platform
    ActivityThread.handleLaunchActivity
    1. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
    2. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
    2 frames