Skip to content

Conversation

@jisqyv
Copy link
Member

@jisqyv jisqyv commented Oct 30, 2025

This change permits the companion app to save projects for use when not connected. Two new menu choices are added to the system menu

  • Save Project: Saves the connected project in its current state
  • Load Project: Brings up a page where you can load or delete a saved project

Change-Id: Ifc23e45a2f9a49c45db36fba16f4f01d7b7f957f

General items:

If your code changes how something works on the device (i.e., it affects the companion):

  • I branched from ucr
  • My pull request has ucr as the base

Further, if you've changed the blocks language or another user-facing designer/blocks API (added a SimpleProperty, etc.):

  • I have updated the corresponding version number in appinventor/components/src/.../common/YaVersion.java
  • I have updated the corresponding upgrader in appinventor/appengine/src/.../client/youngandroid/YoungAndroidFormUpgrader.java (components only)
  • I have updated the corresponding entries in appinventor/blocklyeditor/src/versioning.js

For all other changes:

  • I branched from master
  • My pull request has master as the base

What does this PR accomplish?

Description

Fixes # .

Resolves # .

This change permits the companion app to save projects for use when
not connected. Two new menu choices are added to the system menu

 * Save Project: Saves the connected project in its current state
 * Load Project: Brings up a page where you can load or delete a
   saved project

Change-Id: Ifc23e45a2f9a49c45db36fba16f4f01d7b7f957f
@SusanRatiLane
Copy link
Contributor

First observations from testing:

  1. When I save a project, there's no progress bar or notification that it has succeeded.
  2. The iOS Companion has a button in that menu to close the project and go back to the connect screen. Android doesn't have that and really should
  3. If the app using Classic theme or I hide the title bar, the hamburger menu does not appear
  4. iOS has a My Projects button on the connect screen. Android really ought to match.

Change-Id: I988750bda6a95a2e1ba2ed1161cd6d770ee6f81e
Change-Id: Iaee5adfd3cc730873b12b5aefec64819a588aa1a
@jisqyv
Copy link
Member Author

jisqyv commented Nov 2, 2025

@SusanRatiLane

First observations from testing:

  1. When I save a project, there's no progress bar or notification that it has succeeded.
  2. The iOS Companion has a button in that menu to close the project and go back to the connect screen. Android doesn't have that and really should
  3. If the app using Classic theme or I hide the title bar, the hamburger menu does not appear
  4. iOS has a My Projects button on the connect screen. Android really ought to match.
  1. (point 1 above) I didn't add a progress bar but did add a “Toast” when the project
    is saved.
  2. (point 4 above) I added the “my saved apps” button on the home screen. If you do
    not have any saved apps, it will take you to the saved apps screen
    which because you do not have any apps, will instead display a
    message (not yet written) about what saved apps are.
  3. (point 2 above) Not sure that we can easily do this. Once a project is loaded, the
    initial Companion UI is gone (this is a difference, I believe, from
    the iOS Companion). We could have an implied saved project, which is
    the Companion itself, which we can switch to. But it may require
    cleaning up WebRTC state, etc. It may not be worth the effort at
    this point. From the menu, you can go back to the project
    choice screen and select another project.
  4. (point 3 above) This is an Android limitation. Older devices had a different way to
    get to the app “menu.” This will still work with the Classic theme
    on an older device. However, I’m not sure what we can do when
    someone uses a Classic theme and loads the App on a newer device.
    Keep in mind that the Companion itself uses “Device Default,” so
    people should always be able to get to the projects menu. Just once
    a project using the Classic theme is loaded, there isn’t a way back
    to the projects screen.

Foo! Markdown renumbered the points above...(I just added some annotations to point out the correct bullet point I am responding too).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants