Win a copy of Getting started with Java programming language this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

calling setEnabled throws exception  RSS feed

 
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
Boost this thread!