1 package ro
.ieval
.unical
;
3 import android
.app
.Activity
;
4 import android
.os
.Bundle
;
5 import android
.view
.View
;
6 import android
.widget
.Button
;
7 import android
.widget
.EditText
;
9 public final class LoginActivity
extends Activity
{
12 protected void onCreate(final Bundle savedInstanceState
) {
13 super.onCreate(savedInstanceState
);
14 setContentView(R
.layout
.login
);
15 setTitle(R
.string
.log_in
);
17 final EditText user
=(EditText
) findViewById(R
.id
.editText1
);
18 final EditText pass
=(EditText
) findViewById(R
.id
.editText2
);
19 final Button logIn
=(Button
) findViewById(R
.id
.button1
);
21 logIn
.setOnClickListener(new View
.OnClickListener() {
24 public void onClick(final View v
) {
25 setContentView(R
.layout
.event_view
);