aspose file tools*
The moose likes Android and the fly likes calling setEnabled throws exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "calling setEnabled throws exception" Watch "calling setEnabled throws exception" New topic
Author

calling setEnabled throws exception

Muhammad Imad Qureshi
Ranch Hand

Joined: Sep 13, 2005
Posts: 238
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

Joined: Feb 24, 2009
Posts: 127

can you show us error log..
Muhammad Imad Qureshi
Ranch Hand

Joined: Sep 13, 2005
Posts: 238
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: calling setEnabled throws exception