Send data from Screen1 to Screen2.

171 views
Skip to first unread message

Juan Antonio

unread,
Jun 3, 2018, 8:13:16 AM6/3/18
to MIT App Inventor Forum
Hi friends,

three methods (simple and classic) to pass data from Screen1 to Screen2.


1.- By TinyDB.
2.- By File.
3.- By startValue.

p54Fi_pasar_datos_pantalla_3.aia

TimAI2

unread,
Jun 3, 2018, 9:42:42 AM6/3/18
to MIT App Inventor Forum
Thanks Juan, this one gets asked a lot !!  :)

Juan Antonio

unread,
Jun 3, 2018, 6:32:51 PM6/3/18
to MIT App Inventor Forum
4.- By TinyDB and List


Juan Antonio

unread,
Jun 15, 2018, 6:22:09 PM6/15/18
to mitappinv...@googlegroups.com

5.- By TinyDB and different tags.

Juan Antonio

unread,
Jun 16, 2018, 12:22:04 PM6/16/18
to MIT App Inventor Forum

Sometimes it is not a good option to use several Screens, it is better to have only one Screen and several VerticalArrangements.

In this example, it gets a random temperature Centigrades and a incremental random distance Kilometers and shows in Label1 and Label2.


- In other window (it is a VerticalArrangement2) we can choose Fahrenheit and miles.

- If user chooises ºF or miles, code convert  by expressions.

- We use 2 VerticalArrengement with Height and Width: fill parent.

- VerticalArrangement1 = Button, Label components to show information

- VerticalArrangement2 = CheckBox components to choice C, F, km and miles.

- By Property Visible shows VerticalArrangement1 or VerticalArrangement2

- [careful in this example: before " km", " miles", " ºC", " ºF" there is a space]


- Regards.

Juan Antonio Villalpando

http://kio4.com/appinventor/23G_datos_pantalla_config2.htm (It is in Spanish).



p54G2i_pasar_datos_configuracion.aia
Reply all
Reply to author
Forward
0 new messages