@Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.activity_login);
   progressBar = (RelativeLayout) findViewById(R.id.login_loading_layout);
   username = (ClearEditText) findViewById(R.id.login_user);
   password = (ClearEditText) findViewById(R.id.login_password);
   Bundle b = getIntent().getExtras();
   if (b != null && b.getString("username") != null && b.getString("username").length() > 0) {
     username.setText(b.getString("username"));
   }
   analyzer = new LoginAnalyzer(this);
 }