JavaScript:
((CheckBox)findViewById(R.id.cbAutoSync)).setChecked(autSync);
findViewById(R.id.btnShowRemoteList).setEnabled(true);
findViewById(R.id.btnClearLocalData).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Toast.makeText(Main.this, "test", Toast.LENGTH_SHORT).show();
}
});