[add] 添加实时数据上报测试类
This commit is contained in:
@@ -29,6 +29,12 @@
|
||||
android:label="网络测试">
|
||||
|
||||
</activity>
|
||||
|
||||
<activity
|
||||
android:name=".RealTimeActivity"
|
||||
android:label="实时数据测试">
|
||||
|
||||
</activity>
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
@@ -12,6 +12,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
|
||||
private Button btnJumpPassPort;
|
||||
private Button btnJumpNetWorkPort;
|
||||
private Button btnJumpRealTime;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
@@ -29,5 +30,11 @@ public class MainActivity extends AppCompatActivity {
|
||||
Intent intent = new Intent(MainActivity.this, NetworkActivity.class);
|
||||
startActivity(intent);
|
||||
});
|
||||
|
||||
btnJumpRealTime = findViewById(R.id.btnJumpRealTime);
|
||||
btnJumpRealTime.setOnClickListener(v -> {
|
||||
Intent intent = new Intent(MainActivity.this, RealTimeActivity.class);
|
||||
startActivity(intent);
|
||||
});
|
||||
}
|
||||
}
|
||||
19
app/src/main/java/com/mogo/cloud/RealTimeActivity.java
Normal file
19
app/src/main/java/com/mogo/cloud/RealTimeActivity.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package com.mogo.cloud;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
/**
|
||||
* @author liujing
|
||||
* @description 描述
|
||||
* @since: 2021/1/21
|
||||
*/
|
||||
public class RealTimeActivity extends AppCompatActivity {
|
||||
@Override
|
||||
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_real_time);
|
||||
}
|
||||
}
|
||||
@@ -43,7 +43,7 @@ public class NetworkActivity extends AppCompatActivity {
|
||||
public void onClick(View view) {
|
||||
tvResult.setText("结果显示");
|
||||
queryRoadData("ZD802C1938L10797");
|
||||
// queryHelpSignal("ZD802C1938L10797");
|
||||
// queryHelpSignal("ZD802C1938L10797");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -21,6 +21,12 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:text="跳转网络基础测试" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnJumpRealTime"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:text="实时数据测试" />
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
||||
16
app/src/main/res/layout/activity_real_time.xml
Normal file
16
app/src/main/res/layout/activity_real_time.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
tools:context=".RealTimeActivity">
|
||||
|
||||
<Button
|
||||
android:id="@+id/snapshot"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:text="实时定位 数据上传" />
|
||||
|
||||
</LinearLayout>
|
||||
@@ -2,7 +2,9 @@ package com.mogo.realtime.Imp;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.mogo.cloud.passport.MoGoAiCloudClient;
|
||||
import com.mogo.realtime.Interface.RealTimeProvider;
|
||||
import com.mogo.realtime.constant.SnapshotUploadInTime;
|
||||
import com.mogo.realtime.entity.ADASRecognizedResult;
|
||||
import com.mogo.realtime.location.MogoRTKLocation;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user