java.lang.RuntimeException: Failure delivering result ResultInfo while logging using Facebook

泪湿孤枕 提交于 2019-12-04 05:25:23

Tank you @Matt Accola. that page say this:

When the "Don't keep activities" developer option is turned on in the Android system settings the Facebook SSO login process is broken. The LoginActivity is called repeatedly and each time an instance of LoginActivity is leaked. The login never actually completes and the process eventually needs to be killed.

Please note this bug is not reproducible if the "Don't keep activities" settings is turned off.

Please note this bug is only reproducible if all user accounts are logged out of the native Facebook app.

Steps to Reproduce: 1. Enable "Don't keep activities" setting in Android Developer Options (under Settings) on device.

  1. Verify native Facebook app for Android is installed on device.

  2. Make sure all user accounts are logged out of the native Facebook app.

  3. Download the Facebook SDK for Android source code and samples and import the projects into Eclipse.

  4. Launch the HelloFacebookSample.

  5. Tap the Log In button. The Facebook login screen should be displayed.

  6. Enter Facebook credentials and tap Log In button. After a wait the auth dialog may appear.

  7. Tap OK on the auth dialog.

Expected Behavior: The login process should complete and the HelloFacebookSample screen should be displayed in the logged in state.

Actual Behavior: The Facebook screen remains visible with the progress dialog. The entire system slows down and eventually processes start crashing as memory runs short. I have captured a heap dump during this process and can see numerous instances of LoginActivity which have been leaked. Also enabling StrictMode will show messages stating LoginActivity instances are being leaked.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!