I would like to ask on how to write IF ELSE statement. My "if" is working fine, however, for the else, i couldn't get it working. I not sure what is working with the code.
if(weatherCode.equals("28"))
{
mHandler.post(new Runnable()
{
@Override
public void run()
{
// This gets executed on the UI thread so it can safely modify
// Views
image.setImageResource(R.drawable.logo);
}
});
}
else
{
image.setImageResource(R.drawable.old);
}
weatherCodewith value different than 28?