File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes calling setEnabled throws exception Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Mobile » Android
Reply 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: 235
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..


[My Blog] [ Follow @Twitter] | Innovations never goes out of Style...
Muhammad Imad Qureshi
Ranch Hand

Joined: Sep 13, 2005
Posts: 235
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
 
 
subject: calling setEnabled throws exception
 
MyEclipse, The Clear Choice