-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIntroAct.java
More file actions
35 lines (31 loc) · 1.04 KB
/
Copy pathIntroAct.java
File metadata and controls
35 lines (31 loc) · 1.04 KB
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
/** The application starts with an activity which presents the data of the students developed the application
* Author : Anna Manolaki AM 20051 */
package com.anna.myquiz;
import android.content.Intent;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class IntroAct extends AppCompatActivity implements View.OnClickListener
{
Button ButtonEnter;
@Override
protected void onCreate (Bundle savedInstanceState) {
super.onCreate (savedInstanceState);
setContentView (R.layout.activity_main);
ButtonEnter = (Button) findViewById (R.id.ButtonEnter);
ButtonEnter.setOnClickListener (this);
}
/** Called when a button is pressed.
* Jumps to LoginAct activity.*/
@Override
public void onClick (View v)
{
if (v == ButtonEnter)
{
Intent intent = new Intent (getApplicationContext (), LoginAct.class);
startActivity (intent);
finish();
}
}
}