コード例 #1
0
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.controller);
    setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);

    // CameraView
    LinearLayout linearLayout = (LinearLayout) findViewById(R.id.layout);
    CameraSurfaceView cameraSurfaceView = new CameraSurfaceView(this);
    cameraSurfaceView.setPreviewCallback(this);
    linearLayout.addView(cameraSurfaceView);
    BluetoothConnector.getInstance().open(this);
    ServerConnector.getInstance().setServerCallback(this);
    // TODO Get GPS
    // getGPS();
    // gdg.androidrccarcontroller.tool.gps.GetLocations();
  }