Win a copy of Murach's Java Programming 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
 
He loves you so much! And I'm baking the cake! I'm going to put this tiny ad in the cake:
Thoughts on deprecation in Java
https://coderanch.com/t/683016/java/Deprecation-Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!