There needs to be a way to execute and load an exercise. Specifically, right now there is a button in the UI that shows an exercise (in the 'exercises' branch). This needs to be changed so that when the button is clicked one of two things happen:
If there is only one exercise associated with a video, then immediately contact the webview, letting it know that it should load a specific exercise.
If there is more than one exercise, a pop-up should display (positioned next to the 'Exercises' button) that allows the user to pick which exercise they wish to do.
To contact the webview, the typical updateQuery method should be used, the format of which looks like:
updateQuery("exercise=JSON");
The JSON blob should be identical to the one that's used on the Khan Academy site, and is inlined into the exercises themselves.
There needs to be a way to execute and load an exercise. Specifically, right now there is a button in the UI that shows an exercise (in the 'exercises' branch). This needs to be changed so that when the button is clicked one of two things happen:
If there is only one exercise associated with a video, then immediately contact the webview, letting it know that it should load a specific exercise.
If there is more than one exercise, a pop-up should display (positioned next to the 'Exercises' button) that allows the user to pick which exercise they wish to do.
To contact the webview, the typical updateQuery method should be used, the format of which looks like:
The JSON blob should be identical to the one that's used on the Khan Academy site, and is inlined into the exercises themselves.