PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV Mobile 2024
→
Checker Date et heure automatique fournie par le réseau
Checker Date et heure automatique fournie par le réseau
Started by Thix Kwel, Jan., 28 2020 4:51 PM - 1 reply
Connect yourself…
Thix Kwel
#1
Registered member
21 messages
Popularité : +3 (3 votes)
Posted on January, 28 2020 - 4:51 PM
Bonjour à tous.
Est-ce possible de checker si l'option "Date et heure automatique fournie par le réseau" est active sur androïde par un code windev mobile? ou bien récupérer la date et heure fournie par la carte SIM d'un opérateur téléphonique.
Merci beaucoup
Report
0
0
Thix Kwel
#2
Registered member
21 messages
Popularité : +3 (3 votes)
Posted on February, 20 2020 - 3:24 PM
Bonjour
J'ai trouvé une piste si quelqu'un peut m'aider à intégrer un code java
public static boolean isTimeAutomatic(Context c) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
return Settings.Global.getInt(c.getContentResolver(), Settings.Global.AUTO_TIME, 0) == 1;
} else {
return android.provider.Settings.System.getInt(c.getContentResolver(), android.provider.Settings.System.AUTO_TIME, 0) == 1;
}
}
Lien:
https://stackoverflow.com/questions/23075446/how-to-check-automatic-date-and-time-is-enabled-or-not
Merci
Report
1
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