I want to integrate Facebook signin in my android app. I am using Facebook-sdk-4.4.0. Using the LoginManager class method. But I am facing problem on running the following code-
I am getting the left screen in my app instead of the right screen which should come on running the above code. Can anyone tell me where can be the problem?
Logcat:
--------- beginning of /dev/log/main
I/AppHost.Android(10873): Registered listener for handling
onActivityResult: com.example.office.docsui.common.SignInController$5
--------- beginning of /dev/log/system
I/ActivityManager( 449): START u0 {act=NATIVE_WITH_FALLBACK
cmp=com.example.office.powerworld/com.facebook.FacebookActivity (has
extras)} from pid 10873
I/TelemetryLifeCycleState(10873): Activity Pause Start.
Activity:1099625720,PPTActivity, AppState=3
I/ActivityManager( 449): START u0 {act=NATIVE_WITH_FALLBACK
cmp=com.example.office.powerworld/com.facebook.FacebookActivity (has
extras)} from pid 10873
I/TelemetryLifeCycleState(10873): Activity Pause End.
Activity:1099625720,PPTActivity, AppState=2
I/TelemetryLifeCycleState(10873): Activity Created.
Activity:1107534680,com.facebook.FacebookActivity
I/AppHost.Android(10873): onActivityStarted,
foregroundActivityCount=1, mEventsEnabled= true, mResumeEnabled=false
I/AppHost.Android(10873): this is not an office
activity::com.facebook.FacebookActivity
I/TelemetryLifeCycleState(10873): Activity Resume Start.
Activity:1107534680,com.facebook.FacebookActivity, AppState=2
I/TelemetryLifeCycleState(10873): Activity Resume End.
Activity:1107534680,com.facebook.FacebookActivity, AppState=3,
suspensionTime=54215
I/TelemetryLifeCycleState(10873): Activity Pause Start.
Activity:1107534680,com.facebook.FacebookActivity, AppState=3
I/TelemetryLifeCycleState(10873): Activity Pause End.
Activity:1107534680,com.facebook.FacebookActivity, AppState=2
I/TelemetryLifeCycleState(10873): Activity Created.
Activity:1107673504,com.facebook.FacebookActivity
D/dalvikvm(10873): GC_FOR_ALLOC freed 2064K, 20% free 8974K/11096K,
paused 27ms, total 30ms
I/AppHost.Android(10873): onActivityStarted,
foregroundActivityCount=1, mEventsEnabled= true, mResumeEnabled=false
I/AppHost.Android(10873): this is not an office
activity::com.facebook.FacebookActivity
I/TelemetryLifeCycleState(10873): Activity Resume Start.
Activity:1107673504,com.facebook.FacebookActivity, AppState=2
I/TelemetryLifeCycleState(10873): Activity Resume End.
Activity:1107673504,com.facebook.FacebookActivity, AppState=3,
suspensionTime=54303
D/mali_winsys(10873): new_window_surface returns 0x3000
D/mali_winsys(10873): new_window_surface returns 0x3000
D/mali_winsys(10873): new_window_surface returns 0x3000
D/mali_winsys(10873): new_window_surface returns 0x3000
I/Keyboard.Facilitator( 614): onFinishInput()
I/ActivityManager( 449): Displayed
com.example.office.powerworld/com.facebook.FacebookActivity: +346ms
I/ActivityManager( 449): Displayed
com.example.office.powerworld/com.facebook.FacebookActivity: +346ms
D/mali_winsys(10873): new_window_surface returns 0x3000
D/mali_winsys(10873): new_window_surface returns 0x3000
I/K2_ULS (10873): 07/21/2015 17:24:38.293 PPTDROID
(0x2a79) 0x40066154 Example powerworld AppHost
PLM a2k0b Medium PauseHandlerActivityLifecycleCallbacks:onActivitySaveInstanceState
called
I/Keyboard.Facilitator( 614): onFinishInput()
W/InputMethodManagerService( 449): Window already focused, ignoring
focus gain of:
com.android.internal.view.IInputMethodClient$Stub$Proxy@4227f090
attribute=android.view.inputmethod.EditorInfo@423ba3a8, token =
android.os.BinderProxy@41f633d8