Can you post the relevant bits of code?
There are several things that could be happening:
1) Scope issues (maybe the variable isn't really globally available)
2) Threading problems: updates have to run on the UI thread, so if you're trying to change things from other threads you'll have problems.
3) A simple typo in findViewById().