qi.sdk unregister added
This commit is contained in:
@@ -71,8 +71,10 @@ public class FitnessActivity extends RobotActivity implements RobotLifecycleCall
|
|||||||
public void onRobotFocusGained(QiContext qiContext) {
|
public void onRobotFocusGained(QiContext qiContext) {
|
||||||
|
|
||||||
// Find the VideoView by its ID
|
// Find the VideoView by its ID
|
||||||
CompletableFuture.runAsync(() -> FitnessCycle.executeMovement("bicepcurl", 10, qiContext));
|
// CompletableFuture.runAsync(() -> FitnessCycle.executeMovement("bicepcurl", 10, qiContext));
|
||||||
|
Log.i("Motion", "qiContext provided");
|
||||||
personalMotionPreviewElement.provideQiContext(qiContext);
|
personalMotionPreviewElement.provideQiContext(qiContext);
|
||||||
|
|
||||||
// FitnessCycle.playVideo(qiContext, videoView, this);
|
// FitnessCycle.playVideo(qiContext, videoView, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -89,5 +91,6 @@ public class FitnessActivity extends RobotActivity implements RobotLifecycleCall
|
|||||||
@Override
|
@Override
|
||||||
protected void onDestroy() {
|
protected void onDestroy() {
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
|
QiSDK.unregister(this,this);
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user