added logging
This commit is contained in:
@@ -102,6 +102,7 @@ public class PersonalMotionPreviewElement extends View {
|
|||||||
* @param context The QiContext to provide.
|
* @param context The QiContext to provide.
|
||||||
*/
|
*/
|
||||||
public void provideQiContext(QiContext context) {
|
public void provideQiContext(QiContext context) {
|
||||||
|
try {
|
||||||
this.qiContext = context;
|
this.qiContext = context;
|
||||||
if (this.motionProcessor != null)
|
if (this.motionProcessor != null)
|
||||||
this.motionProcessor.stopListening();
|
this.motionProcessor.stopListening();
|
||||||
@@ -116,6 +117,9 @@ public class PersonalMotionPreviewElement extends View {
|
|||||||
Log.i("MotionProcessor", "Processed data: " + progress + " (" + preprocessed + ")");
|
Log.i("MotionProcessor", "Processed data: " + progress + " (" + preprocessed + ")");
|
||||||
});
|
});
|
||||||
saySomethingNice();
|
saySomethingNice();
|
||||||
|
} catch (Exception e) {
|
||||||
|
Log.e("MotionProcessor", "An error occurred whilst attempting to provide QiContext:" + e.getMessage());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user