startActivity(intent) seems to be buggy
===

I am trying to do a security app that requires users to enter a password if it is wrong the password dialog(Using an Activity in a Theme.Dialog) will relaunch again, but the problem is the Activity doesn't start. For the back button if i press back twice it will dismiss the dialog directly.

    login.setOnClickListener(new View.OnClickListener() {
        public void onClick(View v) {
        	
            password = inputPassword.getText().toString();               
         	final String SHA1hash = PhoneFinder.getSHA1(password); 
         	
        	if (correctSHA1.equals(SHA1hash)) {
        		Toast.makeText(PasswordDialog.this, "Correct", Toast.LENGTH_LONG).show();
                finish();	
            	stopService(new Intent(getBaseContext(), MyService.class));
            	Log.v(TAG, "SHA1 Hash:" + SHA1hash);
            	Log.v(TAG, "Correct SHA1:" + correctSHA1);
        	}
        	else {
        		Toast.makeText(PasswordDialog.this, "Wrong", Toast.LENGTH_LONG).show();
	            Intent Act2Intent = new Intent(getBaseContext(), PasswordDialog.class);              
	            startActivity(Act2Intent);          
	            finish();
            	Log.v(TAG, "SHA1 Hash:" + SHA1hash);
            	Log.v(TAG, "Correct SHA1:" + correctSHA1);
        		

        	}
          
        }
    });
    }
	
	public boolean onKeyDown(int keyCode, KeyEvent event){
	    if(keyCode == KeyEvent.KEYCODE_BACK) {
	            Intent Act2Intent = new Intent(this, PasswordDialog.class);              
	            startActivity(Act2Intent);          
	            finish();
	            return true;
	    }
	    return false;
	}
	