]> iEval git - unical.git/blame - src/ro/ieval/unical/loginActivity.java
Various cleanups
[unical.git] / src / ro / ieval / unical / loginActivity.java
CommitLineData
8188ed47
PT
1package ro.ieval.unical;
2
3import android.app.Activity;
4import android.os.Bundle;
5import android.view.View;
6import android.widget.Button;
7import android.widget.EditText;
8
9public class loginActivity extends Activity {
10
11 @Override
12 protected void onCreate(Bundle savedInstanceState) {
13 super.onCreate(savedInstanceState);
14 setContentView(R.layout.login);
15
16 final EditText user=(EditText) findViewById(R.id.editText1);
17 final EditText pass=(EditText) findViewById(R.id.editText2);
18 final Button logIn=(Button) findViewById(R.id.button1);
19
20 logIn.setOnClickListener(new View.OnClickListener() {
21
22 @Override
23 public void onClick(View v) {
24 // TODO Auto-generated method stub
25 if(Utils.loginSuccess(user.getText().toString(),pass.getText().toString())) {
26 setContentView(R.layout.eventview);
27 }
28 }
29 });
30 }
31}
This page took 0.024487 seconds and 4 git commands to generate.