NO FUNCIONA SALIR DE LA APLICACION

18 views
Skip to first unread message

Omar Davila1

unread,
Jan 3, 2019, 5:01:27 PM1/3/19
to MIT App Inventor Forum
Hola a todos

Ya termine de construir mi aplicacion y he creado el .apk y procedi a instalarlo en un dispositivo movil. Todo funciona correctamente, sin embargo le coloque el boton "SALIR DE LA APLICACION"  pero al oprimirlo no funciona y solo va a otra pantalla. Anexo los bloques con la instruccion ya que no veo el error.

Mucho les agradeceria su ayuda para solucionar este problema.

Saludos y gracias


Hi all

I finished building my application and I created the .apk and proceeded to install it on a mobile device. Everything works correctly, however you put the button "EXIT APPLICATION" but when you press it does not work and only goes to another screen and does not close the application. I annex the blocks with the instruction since I do not see the error.

I would greatly appreciate your help to solve this problem.

Greetings and thanks
BLOQUES.docx

Evan Patton

unread,
Jan 3, 2019, 5:50:49 PM1/3/19
to MIT App Inventor Forum
Hi Omar,

This is typically symptomatic of opening Screen1 from another screen. The close application block works by closing screens up to and including Screen1 on the activity stack. However, if you open more than one copy of Screen1 this logic fails because Screen1 isn't the root activity any more (well, there is 1 Screen1 that is, but the nth Screen1 isn't). Can you confirm that you aren't opening Screen1 from any other screen?

Regards,
Evan

FEDERICO DAVILA

unread,
Jan 3, 2019, 8:57:59 PM1/3/19
to MIT App Inventor Forum
Hola Evan:

Gracias por tu ayuda. La pantalla Screen1 es la pantalla principal desde donde se abren el resto sde las pantallas segun el boton que se selecciones, y de estas pantallas se regresa a Screen1 que es (como ya dije) el menu principal, donde inicia y deberia finalizar la aplicacion (con el cierre).

Espero haberme explicado y me puedas ayudar.

Saludos, 

Hello Evan:

Thanks for your help. The Screen1 screen is the main screen from where the rest of the screens are opened according to the button that you select, and from these screens you return to Screen1 which is (as I said) the main menu, where you start and should end the application ( with the closure).

I hope to have explained myself and you can help me.

Regards,

Taifun

unread,
Jan 9, 2019, 9:16:29 AM1/9/19
to MIT App Inventor Forum
switch screens correctly!

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