Code example for PasswordTransformationMethod

0
    	        public void onClick(DialogInterface dialog, int whichButton) { 
    	            finish(); 
    	        } 
    	    }); 
    		input.setInputType(InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD); 
    		input.setTransformationMethod(new PasswordTransformationMethod()); 
    		Dialog alert = builder.create(); 
    		return alert; 
    	} 
    		 
    	case DIALOG_NO_ACCOUNT: 
    	{ 
    		AlertDialog.Builder builder = new AlertDialog.Builder(this); 
    		builder 
    	    .setTitle("Need Account") 
    	    .setMessage("This application requires that a Google account be associated with this phone. " 
    	    		+ "Please add a Google account under Settings and try again.") 
    	    .setIcon(android.R.drawable.ic_dialog_alert) 
    	    .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { 
    	        public void onClick(DialogInterface dialog, int whichButton) {
    	            dialog.dismiss();