• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with facebook login asynctask error

 
egbai mmumene
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello being trying to integrate facebook login to my app but anytime i run the app it givs an error of too much work on the main thread. although i remove all the code i got from the example i followed at facebook website, then only left the login but from the facebook resources sdk(com.faacebook.login) yet it still shows that error. really confused on what to do here is my layout code. since theres no other code actually running at the moment i cleared everything.

here is my error message
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That sounds odd, since the error message talks of an AsyncTask - so the communication should not happen on the main thread. You're not blocking the main thread or anything like that, are you? In which method of the AsyncTask did you implement the communication?
 
egbai mmumene
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no i removed all code. the only thing thats left is the activities layout file that contains the facebook ogin button(com.facebook.login). but when i remove it the app runs well but once i add the button back to the layout xml it gives that error yet am not doing any processing and definately not on the ui thread.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic