FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
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
Connectez-vous…
Daniel
#1
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
Signaler
0
0
adrianoboller
#2
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.
Signaler
0
0
Xavi
#3
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.
Signaler
0
0
adrianoboller
#4
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/
Signaler
0
0
adrianoboller
#5
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/
Signaler
0
0
adrianoboller
#6
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/
Signaler
0
0
adrianoboller
#7
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/
Signaler
0
0
→ Revenir à WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte