Page 854 - 3-3
P. 854

btn_back.setOnClickListener(new View.OnClickListener() {
                         @Override
                         public void onClick(View v) {
                             AlertDialog.Builder ad = new AlertDialog.Builder(Office_menu.this);
                             ad.setTitle(" 로그아웃");        //  제목 설정
                             ad.setMessage(" 정말 로그아웃 하시겠습니까?");              //  내용 설정
                             //  확인 버튼 설정
                             ad.setPositiveButton(" 예", new DialogInterface.OnClickListener() {
                                 @Override
                                 public void onClick(DialogInterface dialog, int which) {
                                     Office_menu.this.finish();
                                     Toast.makeText(getBaseContext(),          " 로그아웃           되었습니다",
             Toast.LENGTH_SHORT).show();
                                     // Event
                                 }
                             });
                             //  취소 버튼 설정
                             ad.setNegativeButton(" 아니요", new DialogInterface.OnClickListener() {
                                 @Override
                                 public void onClick(DialogInterface dialog, int which) {
                                     dialog.cancel();
                                     // Event
                                 }
                             });
                                 default:
                                     break;
                             }
                             return false;
                         }
                     });
                 }
                 // Result  값에 따라 상태값 새로고침
                 protected void onActivityResult(int requestCode, int resultCode, Intent data) {
                     if (requestCode == Office_menu.STATUS) {
                         String name = getIntent().getStringExtra("name").trim();
                         if (name.equals(" 이두희")) {
                             imageView_01.setImageResource(R.drawable.jbts01);
                             Intent intent = getIntent();
                // Result  값에 따라 상태값 새로고침
                 protected void onActivityResult(int requestCode, int resultCode, Intent data) {
                     if (requestCode == Office_menu.STATUS) {
                         String name = getIntent().getStringExtra("name").trim();
                         if (name.equals(" 이두희")) {
                             imageView_01.setImageResource(R.drawable.jbts01);
                             Intent intent = getIntent();


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