• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem with facebook login asynctask error

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
The moustache of a titan! The ad of a flea:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic