Facebook authorize not working inside Android Asynctask or Thread

前端 未结 3 762
执念已碎
执念已碎 2021-01-20 00:20

Working with facebook in Android. Sometimes my application is cashing in real time device when I tried to authorize Facebook in Android.not in emulator. I used the Android F

3条回答
  •  悲&欢浪女
    2021-01-20 01:06

    I'm having this problem too. I couldn't get the AsyncTask code working.

    So I ended up using runOnUiThread. It works on the emulator, but not on the device, I'm using HTC Desire Android SDK 2.2.2. Unfortunately, I can't even login to Facebook using Hackbook (Facebook's sample project).

    Here's code that uses runOnUiThread: Android App Crashes after Sharing using Facebook Dialogs

提交回复
热议问题