0

I'm new to choregraphe and NAO. I'm working on different meditation exercises, that NAO guides the user through and I want to have one "Master application" that introduces the different exercises and let's the user choose, which one they want to do.

How do I implement an application switch in Choregraphe?

emme
  • 1
  • 1
    Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. – Community Aug 28 '22 at 19:18

1 Answers1

0

You can make an application that lists all the other applications, by calling ALPackageManager.packages2 and going through the results. You have to spot packages that provide behaviors of nature "Interactive". You can get their human-readable names to populate a graphical menu. You can get their trigger sentences to populate a dialogue-based menu.

When an app is selected, use ALAutonomousLife.switchFocus to leave your launcher app and start the other app. Make sure the launch conditions of your launcher app leads to restarting it if a user is still around when the other app finishes.

Victor Paléologue
  • 2,025
  • 1
  • 17
  • 27