Page 612 - 3-3
P. 612
}
}
package com.helloworld.smartschool;
import android.content.Intent; // 액티비치 호출 클래스
import android.os.Bundle; // 문자열로 된 키와 여러 가지의 타입의 값을 저장하는 Map 클래스
import android.support.annotation.NonNull; // 파라미터에서 Null 사용 불허 클래스
import android.support.v7.app.AppCompatActivity; // 안드로이드 하위 버전 지원 액티비티 클래스
import android.widget.CalendarView; // 달력 객체 사용 클래스
import android.widget.Toast; // 토스트 사용 클래스
/**
* Created by JBTS-02-14 on 2017-11-13.
*/
public class WDataBaseActivity extends AppCompatActivity {
String month12; // 월
String day; // 일
String date; // 날짜값
String name; // 이름
String IP; // IP 주소
String WebIP; // WEB 주소
int PORT; // 포트
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.database_main2); // database_main2 를 인스턴스화하고
출력준비
Intent rintent = getIntent(); // 정보 받기위한 intent
name = rintent.getExtras().getString("name2"); // 이름값을 Key 값 name 으로 받아옴
IP = rintent.getExtras().getString("IP"); // IP 주소를 Key 값 IP 로 전달받음
WebIP = rintent.getExtras().getString("WebIP"); // WEB 주소를 KEy 값 WebIP 로
전달받음
PORT = rintent.getExtras().getInt("PORT"); // PORT 주소를 Key 값 PORT 로 전달받음
//calendar view 인스턴스
final CalendarView calendar = (CalendarView) findViewById(R.id.cal);
- 612 -