8

Android: Toggle button doesnt update

view full story
linux-howto

http://stackoverflow.com – I'm having some problems trying to set togglebutton (LeftLightButton) state and text after receiving value 1 at novo.charAt(0) for example. The main idea is, i click the button, it makes webview.loadUrl, and if the page changes to what i expected the toggle button state should be on, if not, it must stay off and vice versa. The way it is now, doesnt change the text neither state in case the site didnt update to the value that i was expecting. public class MainActivity extends Activity { private WebView webView; private ToggleButton LeftLightButton; private Thread webviewthread; private Strin (HowTos)