Page 855 - 3-3
P. 855

finish();
                               startActivity(intent);
                           }
                           else if (name.equals(" 윤상종")) {
                               imageView_01.setImageResource(R.drawable.jbts02);
                               Intent intent = getIntent();
                               finish();
                               startActivity(intent);
                           }
                           else if (name.equals(" 김진섭")) {
                               imageView_01.setImageResource(R.drawable.jbts03);
                               Intent intent = getIntent();
                               finish();
                               startActivity(intent);
                           }
                           else if (name.equals(" 최윤희")) {
                               imageView_01.setImageResource(R.drawable.jbts04);
                               Intent intent = getIntent();
                               finish();
                               startActivity(intent);
                           }
                       }
                   }
                   // JSON  파싱
                   public void showList() {
                       try {
                           JSONObject jsonObj = new JSONObject(myJSON);// JSON       생성
                       peoples = jsonObj.getJSONArray(TAG_JSON); // TAG_JSON       값과 일치하는 DB       값을 불러
               옴
                           //  상태값을 받아옴
                           for (int i = 0; i < 1; i++) {
                               JSONObject c = peoples.getJSONObject(i);
                               String status = c.getString(TAG_Status); // TAG_Status 값을 불러옴
                               HashMap<String, String> persons = new HashMap<String, String>();
                               persons.put(TAG_Status, status);
                               personList.add(persons); //  리스트에 추가
                           }
                           ListAdapter adapter = new SimpleAdapter(
                Office_menu.this, personList, R.layout.item_list3, // List 를 작성할 TextView  가 있는 xml   를 불러
               옴
                                   new String[]{TAG_Status}, // TAG_Status    추가
                                   new int[]{R.id.Te_info} // TextView  추가
                           );
                           list.setAdapter(adapter); //  리스트 어댑터를 불러옴
                       } catch (JSONException e) {


                                                          - 855 -
   850   851   852   853   854   855   856   857   858   859   860