Make an android activity method thread safe
<p>I have a method updateFoo() of an activity called both from a Handler thread every 5 seconds and from a button when user want to press it... updateFoo update the interface of my activity... to make this method thread safe I declared it "synchronized" ... Is that the right way???</p>

<p>Thanks in advance for any help..</p>

<p>.4S.</p>
