-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScreen3.java
More file actions
29 lines (21 loc) · 780 Bytes
/
Copy pathScreen3.java
File metadata and controls
29 lines (21 loc) · 780 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
package com.example.android.thebeatlesquiz;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
public class Screen3 extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_screen3);
Intent intent = getIntent();
String message = intent.getStringExtra(Screen_2.EXTRA_MESSAGE);
TextView textView = (TextView)findViewById(R.id.result);
textView.setText(message);
}
public void reset(View view){
Intent intent = new Intent(this,MainActivity.class);
startActivity(intent);
}
}