Page 452 - MDP2020-3
P. 452
446
| 인천전자마이스터고등학교 ·············································································································
- Result_On.java : 온라인 게임 시 결과 제시
package com.example.mdp;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
public class Result_on extends AppCompatActivity {
TextView myresult;
TextView yourresult;
TextView wlresult;
Button go_select;
int score;
@Override
protected void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.result_on_layout);
myresult=findViewById(R.id.myresult);
yourresult=findViewById(R.id.yourresult);
wlresult=findViewById(R.id.wlresult);
go_select=findViewById(R.id.go_select);
score=getIntent().getIntExtra("score",-1);