[Update]增加多屏互动Netty通信library
This commit is contained in:
@@ -44,6 +44,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
private Button btnV2XFunctionTest;
|
||||
|
||||
private boolean v2xHasBeenInitialized = false;
|
||||
private Button btnNSDNetty;
|
||||
private SurfaceView surfacePreviewView;
|
||||
|
||||
private TextView tvSn;
|
||||
@@ -167,6 +168,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
});
|
||||
|
||||
btnRequestCarLive = findViewById(R.id.btnRequestCarLive);
|
||||
btnNSDNetty = findViewById(R.id.btnNSDNetty);
|
||||
surfacePreviewView = findViewById(R.id.surfacePreviewView);
|
||||
btnRequestCarLive.setOnClickListener(v -> {
|
||||
MoGoAiCloudTrafficLive.viewFrontVehicleLive(40.11547, 116.22544,
|
||||
@@ -203,6 +205,10 @@ public class MainActivity extends AppCompatActivity {
|
||||
}
|
||||
});
|
||||
});
|
||||
btnNSDNetty.setOnClickListener(v -> {
|
||||
Intent intent = new Intent(MainActivity.this, NSDNettyActivity.class);
|
||||
startActivity(intent);
|
||||
});
|
||||
|
||||
//V2X功能测试
|
||||
btnV2XFunctionTest = findViewById(R.id.btnV2XFunctionTest);
|
||||
|
||||
Reference in New Issue
Block a user