Code example for PasswordTransformationMethod

0
		public void onActivityCreated(Bundle savedInstanceState) {
            super.onActivityCreated(savedInstanceState);
		 
			// hack to change typeface, typeface argument in xml resource is not working. 
			mPasswordEdit.setTypeface(Typeface.SANS_SERIF);
			mPasswordEdit.setTransformationMethod(new PasswordTransformationMethod());
			mPassword2Edit.setTypeface(Typeface.SANS_SERIF);
			mPassword2Edit.setTransformationMethod(new PasswordTransformationMethod());
			 
			mSignup.setOnClickListener(new Button.OnClickListener() {
				public void onClick(View v){
					handleSignup(); 
				} 
			}); 
		} 
 
		/** 
		 * Handles onClick event on the sign up button. Start sign up task. 
		 */ 
		public void handleSignup() {