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

import  android.support.v7.app.AppCompatActivity;

            import  android.os.Bundle;

            import  android.util.Log;


            import  android.view.Menu;

            import  android.view.MenuInflater;

            import  android.view.MenuItem;

            import  android.view.View;

            import  android.widget.Button;


            import  android.widget.Toast;

            import  android.widget.ToggleButton;

            public  class  Main1  extends  AppCompatActivity  {

                    //  상수값은  등록을  해놓는다.

                 private  static  final  String TAG = "BluetoothChat";


                    private  static  final  boolean  D  =  true;

                    //  Message  types  sent  from  the  BluetoothChatService  Handler

                 public  static final int MESSAGE_STATE_CHANGE  =  1;

                 public  static final int MESSAGE_READ  =  2;

                 public  static final int MESSAGE_WRITE = 3;


                 public  static final int MESSAGE_DEVICE_NAME  =  4;

                 public  static final int MESSAGE_TOAST = 5;

                    //  Key  names  received  from  the  BluetoothChatService  Handler

                 public  static final String  DEVICE_NAME  =  "device_name";

                 public  static final String  TOAST  =  "toast";


                 private  static  final  int  REQUEST_CONNECT_DEVICE_SECURE = 1;

                    private  static  final  int  REQUEST_CONNECT_DEVICE_INSECURE  =  2;

                    private  static  final  int  REQUEST_ENABLE_BT  =  3;




                                                         -  577  -
   579   580   581   582   583   584   585   586   587   588   589