PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → Open settings on Android / IOS phone
Open settings on Android / IOS phone
Débuté par zwaailicht, 16 fév. 2018 21:40 - 2 réponses
Membre enregistré
15 messages
Posté le 16 février 2018 - 21:40
Hi All,

I have an application (WM22) for Android and iOS.
This app uses an active internet-connection. Ether 4G or wifi.

I made a procedure to check if an ineternet-connection is active. That works fine.
What I would like to know (could not find) if there is an option to open directly from out of the app the systems-settings of the Android and/or iPhone.

Maybe it is not possible, but I hope somebody has a solution.

Regards,
Hans
Membre enregistré
28 messages
Popularité : +2 (2 votes)
Posté le 19 février 2018 - 15:38
Hi,

On Android you can open settings with a Java procedure:
public static void ShowSettings()
{
getCurrentActivity().startActivity(new android.content.Intent(
android.provider.Settings.ACTION_SETTINGS));
}


You can go directly to certain settings if you look into the following page:
https://developer.android.com/reference/android/provider/Settings.html

For iOS i don't know, sorry...

Regards,
Joey
Membre enregistré
15 messages
Posté le 20 février 2018 - 06:59
Thanks for your answer. I will look into it (y)