[Update]增加多屏互动Netty通信library

This commit is contained in:
chenfufeng
2022-02-09 15:34:13 +08:00
parent 1c5b2761bf
commit 2f5c5f9b28
27 changed files with 2114 additions and 15 deletions

View File

@@ -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);