开发者

Application working on emulator but not working on actual device

I am testing facebook Single-Sign-On application. I am using android platform 2.2 and api level 8. I have similarly created emulator with the same configuration. It is working fine in emulator. But when i test it on actual device that is HTC Desire HD ver 2.2 froyo updated. It opens up a dialog with facebook as title and shows loading screen then disappears.

I am unable to understand the r开发者_高级运维eason for such behavior.

Please help me on this.

Regards,

Pankaj


You need to get the debug on device working and see the error that appears in LogCat.You can find instructions oh how to use debug on device here


You can plug in your device using the usb cable (making sure usb debugging is on in the options).

then debug your application and you will see what the cause is in the debugging console.

I suspect tho your problem is to do with how you are transferring the apk file to the phone (it needs to be signed for facebook SSO to work and you need to have set the key correctly in your facebook app).

See here for more information: http://www.juje.me/2011/04/export-the-signature-of-your-android-app-for-facebook-api-use/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜