Connect another screen to the Bluetooth address of the first

Is it possible to save the value of the address or send it to the other screen to connect it to ScreenInitialize?

You can use virtual screens -vertical arrangements that act like screens.

When we define virtual screens, we use one 'real' App Inventor Screen (most often Screen1). Screen-sized Vertical Arrangements on it are displayed/hidden as required - they are the Virtual Screens. This is generally a better approach for multi-screen Apps, they share data without having to "pass" it between screens and it also reduces code duplication, making the App more efficient and the code easier to follow if you have to return to it at a later date.

So, instead of separate "houses", virtual screens are "rooms" of the same "house".

Taken from here. Thank you Chris!

I had already done it but there are errors when the contents of the arrangements are visible and the arrangement itself is not.

Well, that's a bug in your code, should be easy to fix. Only the Arrangements should be displayed/hidden, not the components they contain - the components are permanently displayed on their Arrangement but can't be seen if the Arrangement is hidden.

1 Like