Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

calling setEnabled throws exception

 
Muhammad Imad Qureshi
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Although setClickable (false) is working just fine on a button, setEnabled or setBackgroundColor is throwing an exception. What am I doing wrong here?

Thanks
Imad
 
Piyush Patel
Ranch Hand
Posts: 127
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you show us error log..
 
Muhammad Imad Qureshi
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply. I actually found the issue. I was trying to access my UI from licensing thread. I needed to use a handler to do that.

Thanks
Imad
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic