Skip to content

Commit e30c87d

Browse files
362780316zjn0505
authored andcommitted
137_new_Feature_test
1 parent cb47f76 commit e30c87d

File tree

5 files changed

+952
-2
lines changed

5 files changed

+952
-2
lines changed

sample/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
<activity android:name=".FaceActivity" />
8585

8686
<activity android:name=".SerialActivity" />
87+
<activity android:name=".new_feature.Test137Activity" />
8788

8889
<receiver android:name=".BootCompleteReceiver"
8990
android:exported="true">

sample/src/main/java/com/robotemi/sdk/sample/MainActivity.kt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ import kotlin.concurrent.thread
8888
import androidx.core.view.isVisible
8989
import androidx.lifecycle.lifecycleScope
9090
import com.robotemi.sdk.map.Layer
91+
import com.robotemi.sdk.sample.new_feature.Test137Activity
9192
import kotlinx.coroutines.Dispatchers
9293
import kotlinx.coroutines.launch
9394
import kotlinx.coroutines.withContext
@@ -566,6 +567,10 @@ class MainActivity : AppCompatActivity(), NlpListener, OnRobotReadyListener,
566567
btnIsFrontTOFEnabled.setOnClickListener { isFrontTOFEnabled() }
567568
btnToggleBackTOF.setOnClickListener { toggleBackTOF() }
568569
btnIsBackTOFEnabled.setOnClickListener { isBackTOFEnabled() }
570+
btn137Feature.setOnClickListener {
571+
val intent = Intent(this@MainActivity, Test137Activity::class.java)
572+
startActivity(intent)
573+
}
569574

570575
btnMinimumObstacleDistance.setOnClickListener {
571576
if (requestPermissionIfNeeded(Permission.SETTINGS, REQUEST_CODE_NORMAL)) {
@@ -2561,11 +2566,11 @@ class MainActivity : AppCompatActivity(), NlpListener, OnRobotReadyListener,
25612566

25622567
// Storage Permissions
25632568
private const val REQUEST_EXTERNAL_STORAGE = 1
2564-
private const val REQUEST_CODE_NORMAL = 0
2569+
const val REQUEST_CODE_NORMAL = 0
25652570
private const val REQUEST_CODE_FACE_START = 1
25662571
private const val REQUEST_CODE_FACE_STOP = 2
25672572
private const val REQUEST_CODE_MAP = 3
2568-
private const val REQUEST_CODE_SEQUENCE_FETCH_ALL = 4
2573+
const val REQUEST_CODE_SEQUENCE_FETCH_ALL = 4
25692574
private const val REQUEST_CODE_SEQUENCE_PLAY = 5
25702575
private const val REQUEST_CODE_START_DETECTION_WITH_DISTANCE = 6
25712576
private const val REQUEST_CODE_SEQUENCE_PLAY_WITHOUT_PLAYER = 7

0 commit comments

Comments
 (0)