package com.k3nx.signupform;

import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;


public class LoginActivity extends ActionBarActivity {

    private Button mSubmitButton;
    private EditText mUsernameInput;
    private EditText mPasswordInput;
    private EditText mConfirmInput;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login);

        mSubmitButton = (Button)findViewById(R.id.submit_button);
        mUsernameInput = (EditText)findViewById(R.id.username_input);
        mPasswordInput = (EditText)findViewById(R.id.password_input);
        mConfirmInput = (EditText)findViewById(R.id.confirm_input);

        mSubmitButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
    }


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.menu_login, menu);
        return true;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        // Handle action bar item clicks here. The action bar will
        // automatically handle clicks on the Home/Up button, so long
        // as you specify a parent activity in AndroidManifest.xml.
        int id = item.getItemId();

        //noinspection SimplifiableIfStatement
        if (id == R.id.action_settings) {
            return true;
        }

        return super.onOptionsItemSelected(item);
    }
}

@@ -98,16 +98,41 @@
 Bundle;%0A
+import android.util.Log;%0A
 import a
@@ -321,24 +321,80 @@
 Activity %7B%0A%0A
+    private static final String TAG = %22LoginActivity%22;%0A%0A
     private 
@@ -1100,16 +1100,390 @@
 ew v) %7B%0A
+                String username = mUsernameInput.getText().toString();%0A                String password = mPasswordInput.getText().toString();%0A                String confirmation = mConfirmInput.getText().toString();%0A                if(password.equals(confirmation)) %7B%0A                    Log.d(TAG, String.format(%22Password Success for %251$s!!!%22, username));%0A                %7D
 %0A       

Verify that password and confirm match