-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathResultActivity.java
More file actions
39 lines (28 loc) · 1.02 KB
/
ResultActivity.java
File metadata and controls
39 lines (28 loc) · 1.02 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
36
37
38
39
package com.example.madproject;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
public class ResultActivity extends AppCompatActivity {
TextView score;
Button doneBtn;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_result);
score=(TextView)findViewById(R.id.score);
Intent i=getIntent();
String correct=i.getStringExtra("correct");
score.setText(correct);
doneBtn=(Button)findViewById(R.id.button_done);
doneBtn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent=new Intent(getApplicationContext(),CSharpQuiz.class);
startActivity(intent);
}
});
}
}