PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV Mobile 2024
→
réseauSignalGSM valeur négative sous Android
réseauSignalGSM valeur négative sous Android
Started by stefkpl, Aug., 06 2020 11:18 AM - No answer
Connect yourself…
stefkpl
#1
Registered member
78 messages
Popularité : +1 (1 vote)
Posted on August, 06 2020 - 11:18 AM
Bonjour,
Suite à la dernière mise jour Android, j'ai une fonction qui bloque car la valeur retournée n'est plus dans les clous.
CO
NSTANTE
MIN_SIGNAL_GSM
=
10
SI PAS
EnModeSimulateur
(
)
ALORS
RENVOYER
InternetConnecté
(
) =
Faux
_OU_
WiFiEtat
(
) <
>
wifiActif
_ET_
(
RéseauMobileInfoConnexion
(
réseauSignalGSM
) <
=
MIN_SIGNAL_GSM _OU_
(
RéseauMobileInfoConnexion
(
réseauType
) <
>
réseau3G
_ET_
RéseauMobileInfoConnexion
(
réseauType
) <
>
réseau4G
)
)
Avertissement
(
"Vous n'êtes pas connecté à Internet"
,
"Fermeture de l'application"
)
<
Compile
SI
TypeConfiguration
=
Android
>
Info
(
"Internet = "
+
InternetConnecté
(
)
,
"Force du signal GSM = "
+
RéseauMobileInfoConnexion
(
réseauSignalGSM
)
, ...
"Réseau (3=>3G / 4=>4G) = "
+
RéseauMobileInfoConnexion
(
réseauType
)
,
"Wifi (4=>Actif) = "
+
WiFiEtat
(
)
,
"Info WiFi = "
,
WiFiInfoConnexion
(
wifiTout
)
)
FinProgramme
(
)
<
FIN
>
RéseauMobileInfoConnexion(réseauSignalGSM) me retourne -240 ou plus (dans le sens négatif), hors la valeur normalement retournée est un entier positif compris en 0 et 255.
Une idée ?
D'avance merci.
Amicalement
--
---------
De retour en dev windev : de webdev 12 à windev mobile 23 outch !!!
Report
0
0
→ Go back to WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
WEBDEV (earlier versions)
WINDEV Mobile (earlier versions)
Reports & Queries
Off-topic
Tools
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text