Phoenix

unread,
Apr 27, 2019, 4:39:30 AM4/27/19
to MIT App Inventor Forum
Buongiorno , 
Sto provando a realizzare una app con una serie di tasti (ognuno o con un link video) ed un web viewer , il tasto invia al web viewer un link video (m3u8) e viene correttamente visualizzato, 
Ma quando voglio tornare indietro per cambiare tasto (link) oppure inavvertitamente si preme il tasto indietro del telefono esce dall'app.
H letto anche sulle note del componente questo, ma mi chiedevo non cè nessun altro modo?
grazie

TimAI2

unread,
Apr 27, 2019, 4:59:39 AM4/27/19
to MIT App Inventor Forum
Please show your relevant blocks, so we can see what you are trying to do

Right Click in Blocks Editor and select "Download Blocks as Image"
(use image editor to crop etc. if required)

In the forum, click on the image button to upload your blocks image

imagebuttonontoolbar.png


Phoenix

unread,
Apr 27, 2019, 6:17:45 AM4/27/19
to MIT App Inventor Forum

blocks (2).png



TimAI2

unread,
Apr 27, 2019, 7:12:00 AM4/27/19
to MIT App Inventor Forum
From the screen drawer, drag out the screen1.backpressed block to your blocks editor and leave it empty
This will stop the back button from working (on this screen)

backpressedblock.png


Chris Ward

unread,
Apr 27, 2019, 7:28:26 AM4/27/19
to MIT App Inventor Forum
... Rather than leave Blocks empty, which could cause an issue in the compiled code further down the line:

PreventBackPressFromExitingApp.png


Phoenix

unread,
Apr 27, 2019, 8:25:49 AM4/27/19
to MIT App Inventor Forum
Grazie a tutti. 
ho risolto così.

test.jpg


Taifun

unread,
Apr 27, 2019, 10:05:57 AM4/27/19
to MIT App Inventor Forum
Rather than leave Blocks empty, which could cause an issue in the compiled code further down the line:
to have an empty event block is fine, this does not produce a warning
to have empty sockets in method or properties is an issue and this also produces a warning

Taifun

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

Reply all
Reply to author
Forward
0 new messages