diff --git a/code/src/Fitbot/app/src/main/java/com/example/fitbot/MainActivity.java b/code/src/Fitbot/app/src/main/java/com/example/fitbot/MainActivity.java index 6ada06e..6ee2d0e 100644 --- a/code/src/Fitbot/app/src/main/java/com/example/fitbot/MainActivity.java +++ b/code/src/Fitbot/app/src/main/java/com/example/fitbot/MainActivity.java @@ -16,6 +16,9 @@ import com.aldebaran.qi.sdk.object.actuation.Animate; import com.aldebaran.qi.sdk.object.actuation.Animation; import com.aldebaran.qi.sdk.object.conversation.Phrase; import com.aldebaran.qi.sdk.object.conversation.Say; +import com.aldebaran.qi.sdk.object.locale.Language; +import com.aldebaran.qi.sdk.object.locale.Locale; +import com.aldebaran.qi.sdk.object.locale.Region; public class MainActivity extends RobotActivity implements RobotLifecycleCallbacks { @@ -36,12 +39,17 @@ public class MainActivity extends RobotActivity implements RobotLifecycleCallbac @Override public void onRobotFocusGained(QiContext qiContext) { + Locale locale = new Locale(Language.DUTCH, Region.NETHERLANDS); + // Create a new say action. Say say = SayBuilder.with(qiContext) // Create the builder with the context. .withText("Hallo hoe gaat het?") // Set the text to say. .build(); // Build the say action. - Phrase namePhrase = new Phrase("This location is " + locationName); + String locationName = ("de hogeschool van amsterdam"); + String locationDescription = ("0 bitches"); + + Phrase namePhrase = new Phrase("Deze locatie is " + locationName); Say sayName = SayBuilder.with(qiContext) .withPhrase(namePhrase) .withLocale(locale) @@ -57,10 +65,10 @@ public class MainActivity extends RobotActivity implements RobotLifecycleCallbac sayDescription.run(); // Create a new BicepVideo with the qiContext - bicepvideo BicepVideo = new bicepvideo(); - - // Call the videoPlayer method - BicepVideo.Video(qiContext); +// BicepVideo BicepVideo = new BicepVideo(); +// +// // Call the videoPlayer method +// BicepVideo.Video(qiContext); // Execute the action. say.run();