Connection between two different screens

Hello everyone, I want to color the day in a calendar in Screen 1 when a video was played in screen 2, so people know what day they watched the video. Do you know what to do so that so that after watching the video the day is automatically colored.

Thanks for your help

You can use open with start value is a good choice. It transfers the value when going back to Screen1.
On Screen2,

Back to Screen1,

A test aia (tested on both companion and compiled apk on Android 10 Oneplus 5T)
test2.aia (3.2 KB)

Use the date as a TinyDB tag and store the video URL in its value.

Your specification makes no sense.

The calendar does not say which video(s) were watched on that date, only that SOME video was watched on that date.

What is the benefit of that?

The recommended method of switching screens in App Inventor


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

Thank you very much for your help.

It's about a learning app, where you can see on which days you watched a learning video. I first wanted to try out how it works with the colouring. If you also write down which video you watched, it is even more complicated :slight_smile:

it did this, but now every single day is blue!

one solution is to have a different tag in TinyDB for each of the videos

generally use Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing, and Debugging Tools

Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

Sorry for that, I thought the OP was saying to transfer data when switching screens. However, it is still useful in some cases.

sorry, no... what you showed is just wrong... and you did not show when it would be useful...

the only exception is Tribblehunter's method or a variant of that method...
Tribblehunter's Multiple Screen Method


1 Like

What's wrong? The only thing I missed is closing the previous screen.

Sending data between screens instead of saving additional data in TinyDB. Simple as that.

there you go...
and without that it is wrong...
you might want to adjust your answer to make it correct...


1 Like

Thanks for correcting me :wink:

1 Like

@analog Which VideoPlayer do you use and where does the video come from (assets, SDcard, URL)?

The VideoPlayer component cannot play from URL.
See e.g. here: