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

Ⅳ.  CodeVision  Source  Code



                                                        networkWriter.close();

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

                                             }
                                             recreate();


                                             Toast.makeText(MainActivity.this, "상태정보가  초기화  됐습니다.",
             Toast.LENGTH_SHORT).show();
                                        }
                                  });



                                  alert.setMessage("상태정보를  지우시겠습니까?");
                                  alert.show();
                                  help.resetStatus();
                        }

                        return super.onOptionsItemSelected(item);
                  }         //액션바를  설정하는  부분


                     protected  void  onActivityResult(int  requestCode,  int  resultCode,  Intent  data)  {

                        super.onActivityResult(requestCode,  resultCode,  data);
                        switch (resultCode)  {
                             case  0:
                                  mPref  = getSharedPreferences("MyPrefs", 0);

                                  hostname  =  mPref.getString("ip_address",  "NULL");


                                  if  (help.isNull())  {
                                        exLoc  =  "void";

                                        exWho  =  "void";
                                        exStatus = 5;
                                  } else  if  (!help.isNull())  {
                                        exLoc  =  help.getCurrent().getSt_loc();

                                        exWho  =  help.getCurrent().get_id();
                                        exStatus = help.getCurrent().getState();
                                  }


                                  try {



                                                                                               정보통신기기과
                                                         -  817  -
   819   820   821   822   823   824   825   826   827   828   829