title: Password text Field
body: <p>I am doing a project for class where I would like to create a little password login in Android Studio. I want to create something simple and I know how to do it on Java but I don't know how I would go about doing it in this application. I basically want to get up a password box and a button. On down of the button I would like to test the input of the edit text password box to see if it equals the variable. This variable would be set and definite to something like root. I need to find a way to test that output on the password field to see if it equals the variable. If it does then it would move to another page. The code will be below</p>
  
  <p>my Java file:</p>
  
  <pre><code>package com.example.murdocbgould.passwordpt4;
  
  import android.support.v7.app.AppCompatActivity;
  import android.os.Bundle;
  
  public class MainActivity extends AppCompatActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          String passwordA = "root";
      }
  }
  </code></pre>
  
  <p>my XML file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.constraint.ConstraintLayout 
  xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context="com.example.murdocbgould.passwordpt4.MainActivity"&gt;
  
      &lt;EditText
          android:id="@+id/editText"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:ems="10"
          android:inputType="textPassword"
          tools:layout_editor_absoluteX="85dp"
          tools:layout_editor_absoluteY="260dp" /&gt;
  
      &lt;TextView
          android:id="@+id/textView"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="Password:"
          tools:layout_editor_absoluteX="160dp"
          tools:layout_editor_absoluteY="226dp" /&gt;
  
      &lt;Button
          android:id="@+id/button"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="Submit"
          tools:layout_editor_absoluteX="148dp"
          tools:layout_editor_absoluteY="437dp" /&gt;
  
      &lt;TextView
          android:id="@+id/textView2"
          android:layout_width="328dp"
          android:layout_height="43dp"
          android:text="Bluetooth Texting Login"
          android:textSize="30sp"
          tools:layout_editor_absoluteX="28dp"
          tools:layout_editor_absoluteY="147dp" /&gt;
  
  &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>