Page 209 - 3-1
P. 209

package org.intec.incheon.korea.project3_1_3;


              import android.bluetooth.BluetoothAdapter;
              import android.bluetooth.BluetoothDevice;
              import android.content.Context;
              import android.os.Bundle;
              import android.support.v7.app.AppCompatActivity;
              import android.util.Log;
              import android.view.View;
              import android.webkit.WebView;
              import android.widget.Button;
              import android.widget.Toast;


              public class MainActivity extends AppCompatActivity {


                  private static AppCompatActivity instance;
                  private static Context context;
                  BluetoothAdapter mBluetoothAdapter; //  폰의 블루투스 모듈을 사용하기 위한 오브젝트.
                  Button internet;
                  Button mButtonSend;
                  Bluetooths bt = null;
                  private WebView webView;


                  public static Context getContext() {
                      return context;
                  }


                  public static AppCompatActivity getInstance() {
                      return instance;
                  }


                  @Override
                  protected void onCreate(Bundle savedInstanceState) {
                      super.onCreate(savedInstanceState);
                      setContentView(R.layout.activity_main);
                      instance = this;
                      context = this.getApplicationContext();


                      internet = (Button) findViewById(R.id.button);
                      mButtonSend = (Button) findViewById(R.id.button4);



                                                         - 209 -
   204   205   206   207   208   209   210   211   212   213   214