• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can't create handler inside thread that has not called Looper.prepare()  RSS feed

 
simone giusti
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suppose a simple method in MainActivity:



I would like to call it from another class:




This is the result:



Will you help me ???

Thanks.
 
simone giusti
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Too easy or too difficult?


simone giusti wrote:Suppose a simple method in MainActivity:



I would like to call it from another class:




This is the result:



Will you help me ???

Thanks.
 
Junilu Lacar
Sheriff
Posts: 11494
180
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not enough context. Please TellTheDetails (<-- that's a link, click it)
 
Junilu Lacar
Sheriff
Posts: 11494
180
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, did you try searching for Can't create handler inside thread that has not called Looper.prepare()? You might find there are already lots of people who encountered this same problem.

Since this is a volunteer community, some questions may take a while to get answered. Patience is a Virtue
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!