Hello I am working with an android application and i am trying to change the screen inside a thread and i get the following error "Only the original thread that created a view hierarchy can touch its views" Please check at my code and tell me a way to overcome this error
Runnable runnable = new Runnable() {
public void run() {
Users user = mapper.load(Users.class,username);
System.out.println(user.getPassword());
System.out.println(username);
if (user != null && user.getPassword().equals(password)){
//System.out.println("Correct");
setContentView(R.layout.activity_account);
}