Page 513 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 513

public  void run() {
                                            }
                                       });

                                 }
                            } catch  (Exception e)  {
                            }
                       }

                 };
                 worker.start();
            }


                 @Override
                 protected void onStop() {

                      // TODO Auto-generated method stub
                    super.onStop();
                      try {
                            socket.close();

                       } catch (IOException e)  {
                            e.printStackTrace();
                       }
                 }


            }






            6. Ho_Activity.xml





            <?xml version="1.0" encoding="utf-8"?>

            <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"


                xmlns:tools="http://schemas.android.com/tools"

                android:layout_width="match_parent"

                android:layout_height="match_parent"


                android:paddingBottom="@dimen/activity_vertical_margin"




                                                         -  506  -
   508   509   510   511   512   513   514   515   516   517   518