Page 112 - MDP2022-2
P. 112

import  android.util.Log;
            import  android.view.View;
            import  android.widget.EditText;
            import  android.widget.ImageView;
            import  android.widget.TextView;
            import  android.widget.Toast;


            import  androidx.appcompat.app.AppCompatActivity;


            import  java.io.BufferedReader;
            import  java.io.InputStream;
            import  java.io.InputStreamReader;
            import  java.io.OutputStream;
            import  java.net.HttpURLConnection;
            import  java.net.URL;


            public  class  MainActivity  extends  AppCompatActivity{


                    String  ID;
                    private  ImageView  login;
                    private  TextView  register;
                    private  EditText  id;
                    private  EditText  pw;
                    static  String  name;
                    static  String  temperature_now;
                    static  String  moist;
                    static  String  temperature_want;
                    static  String  id2;
                    static  String  pwd;
                    static  String  phone;




                    private  static  final  String  TAG  =  "[  INTEC  ]";
                    @Override
                    protected  void  onCreate(Bundle  savedInstanceState)  {
                            super.onCreate(savedInstanceState);
                            setContentView(R.layout.activity_main);


                            login  =  findViewById(R.id.login);
                            register  =  findViewById(R.id.register);
                            id  =  findViewById(R.id.id2);
                            pw  =  findViewById(R.id.pw2);




                            login.setOnClickListener(new  View.OnClickListener()  {
   107   108   109   110   111   112   113   114   115   116   117