Page 505 - 3-3
P. 505

Log.d("Error", e.toString());
                          Toast.makeText(this, " 층 정보 로딩 실패", Toast.LENGTH_SHORT).show();
                      }
                  }
              }
               엘리베이터 층 화면 표시 중 엘리베이터를 누르면 나오게 되는 엘리베이터 이동 기록 로그를
              표시하는 부분이다.


                  바. ElevatorMainActivity


                  package com.example.jbtc_01_06.outside.Elevator;


              import android.app.FragmentManager;
              import android.app.FragmentTransaction;
              import android.content.Context;
              import android.content.DialogInterface;
              import android.content.Intent;
              import android.content.SharedPreferences;
              import android.os.AsyncTask;
              import android.os.StrictMode;
              import android.support.v7.app.AlertDialog;
              import android.support.v7.app.AppCompatActivity;
              import android.os.Bundle;
              import android.util.Log;
              import android.view.LayoutInflater;
              import android.view.View;
              import android.widget.EditText;
              import android.widget.Toast;


              import com.example.jbtc_01_06.outside.R;


              import java.io.BufferedReader;
              import java.io.BufferedWriter;
              import java.io.IOException;
              import java.io.InputStreamReader;
              import java.io.OutputStreamWriter;
              import java.io.PrintWriter;
              import java.net.Socket;
              import java.util.zip.Inflater;


              public class ElevatorMainActivity extends AppCompatActivity {
                  // Application Server Address
                  private String IP;
                  // Server  연결 관련 상수
                  private static final int PORT = 8001;


                                                          - 505 -
   500   501   502   503   504   505   506   507   508   509   510