Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainActivityMatt.java
More file actions
Latest commit
41 lines (31 loc) · 1015 Bytes
/
Copy pathMainActivityMatt.java
File metadata and controls
41 lines (31 loc) · 1015 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
packagecs2340.woms;
importandroid.os.Bundle;
importandroid.app.Activity;
importandroid.view.*;
importandroid.content.Intent;
importandroid.widget.Button;
importandroid.view.View.OnClickListener;
publicclassMainActivityMattextendsActivity {
ButtonloginButton;
@Override
protectedvoidonCreate(BundlesavedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main_activity_matt);
loginButton = (Button) this.findViewById(R.id.button1);
loginButton.setOnClickListener(newOnClickListener(){
publicvoidonClick(Viewv){
Intentintent = newIntent(MainActivityMatt.this,LoginScreen.class);
startActivity(intent);
};
});
}
@Override
publicbooleanonCreateOptionsMenu(Menumenu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main_activity_matt, menu);
returntrue;
}
publicvoidgotoLogin(Viewx){
Intentintent = newIntent(this, LoginScreen.class);
}
}