Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to pass data between screens using intent in MIT app inventor

Tags:

app-inventor

I am a beginner in MIT app inventor tool. I am stuck on passing data between screens. I have searched a lot of time on the internet. I got lots of results using activity starter with intent, but how it is possible in MIT app inventor?

If in android we can pass data like this

Intent i = new Intent(this, ActivityTwo.class);

i.putExtra("Value1", "This value one for ActivityTwo ");

i.putExtra("Value2", "This value two ActivityTwo");

startActivity(i);   

by using bundle we get that data, but how it is possible in MIT app inventor?

like image 576
Pavan tej Avatar asked Jan 01 '26 21:01

Pavan tej


1 Answers

You have 2 options to pass data between screens:

  1. to use the open another screen with start value block
    example: enter image description here as you can see, a value also can be a list...
    then in the other screen you can get the data using the get start value block

  2. to use TinyDB
    for example in Screen1 just store the data in TinyDB and read it again in Screen2

see also this example

like image 106
Taifun Avatar answered Jan 08 '26 01:01

Taifun



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!