Page 128 - MDP2022-2
P. 128
int led_cnt=0;
int lock_cnt=0;
ImageView box,LED,lock;
FrameLayout setframe,inforframe;
LinearLayout update;
private static final String TAG = "[ INTEC ]";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_infor);
update = findViewById(R.id.update);
setframe = findViewById(R.id.setframe);
inforframe = findViewById(R.id.inforframe);
textView1= findViewById(R.id.textView1);
textView2= findViewById(R.id.textView2);
textView3= findViewById(R.id.textView3);
textView4= findViewById(R.id.textView8);
logout = findViewById(R.id.textView11);
lock = findViewById(R.id.lock);
box = findViewById(R.id.imageView2);
LED = findViewById(R.id.LED);
want_temp = findViewById(R.id.want_temp_set);
real_temp = findViewById(R.id.real_temp);
real_moisture =findViewById(R.id.real_moisture);
up = findViewById(R.id.up2);
down = findViewById(R.id.down2);
setting = findViewById(R.id.setting);
informa = findViewById(R.id.informa);
ID = getIntent().getStringExtra("ID");
MainActivity main = new MainActivity();
real_temp.setText(main.temperature_now);
real_moisture.setText(main.moist);
want_temp.setText(main.temperature_want);
textView1.setText("아이디: "+main.id2);
textView2.setText("비밀번호: "+main.pwd);
textView3.setText("이름: "+main.name);
textView4.setText("번호: "+main.phone);