PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → Android 4 - Back Button Issue
Android 4 - Back Button Issue
Débuté par Daniel, 29 jan. 2015 19:17 - 6 réponses
Membre enregistré
1 message
Posté le 29 janvier 2015 - 19:17
Hi everyone,

In one of our products we are having an issue with the Android back button causing the application to crash. This is something that only affects Android 4, versions 2, 3 and 5 are unaffected.

Has anybody else experienced this issue with WinDev and managed to overcome it?

Any help would be greatfully received.

Daniel
Membre enregistré
3 651 messages
Popularité : +175 (223 votes)
Posté le 29 janvier 2015 - 20:41
Daniel

Place a button on the negative position left of the screen x = -200

Heat the button with the right mouse button and choosing Description and GUI has a ShortCut option and

place in one of the CODE dialog switch button for a decision.



Posté le 30 janvier 2015 - 00:05
Hi Daniel.
Are you using WM18?
In t'has case, it's a bug of WM18, I don't remember t'he version.
There is a correctif for t'his that you Can request to pcsoft.
Membre enregistré
3 651 messages
Popularité : +175 (223 votes)
Posté le 17 février 2016 - 14:42
//Simula o click na Tecla Home do Android

import android.app.Activity;
import android.content.Intent;
import java.lang.*;
import android.util.*;
import java.lang.Exception;
import android.util.Log;

PUBLIC static boolean KeyBack()
{

RETURN True;

}


--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 9949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.blogspot.com.br/
Membre enregistré
3 651 messages
Popularité : +175 (223 votes)
Posté le 17 février 2016 - 14:44
No botão vc coloca depois de esquentar

KeyBack()

--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 9949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.blogspot.com.br/
Membre enregistré
3 651 messages
Popularité : +175 (223 votes)
Posté le 17 février 2016 - 14:49
Outros Detalhes

Verifica se pressionou a tecla Home do iPhone iOS





//Verifica se pressionou a tecla Home
IF IniOSMode() = True
Info("Pressionou o botao Home no iOS - 3")
ELSE IF InAndroidMode() = True
Info("Pressionou o botao Home no Android - 3")
END


--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 9949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.blogspot.com.br/
Membre enregistré
3 651 messages
Popularité : +175 (223 votes)
Posté le 17 février 2016 - 14:57
PREZADOS,

Segue aqui todas as possibilidades

Crie 4 botões e esquente cada um deles com essas opções:

















O Código em cada botão seria esse aqui

//Verifica se pressionou a tecla Home
IF IniOSMode() = True
Info("Pressionou o botao Home no iOS - 3")
RETURN
ELSE IF InAndroidMode() = True
Info("Pressionou o botao Home no Android - 3")
RETURN
END


OBS.:

O RETURN QUE FAZ NAO DEIXAR SAIR

SE QUISER UMA MENSAGEM USE O COMANDO:

YESNO(....

Um forte abraço a todos,

--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 9949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.blogspot.com.br/