PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV Mobile 2024 → Open settings on Android / IOS phone
Open settings on Android / IOS phone
Iniciado por zwaailicht, 16,feb. 2018 21:40 - 2 respuestas
Miembro registrado
15 mensajes
Publicado el 16,febrero 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
Miembro registrado
28 mensajes
Popularité : +2 (2 votes)
Publicado el 19,febrero 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
Miembro registrado
15 mensajes
Publicado el 20,febrero 2018 - 06:59
Thanks for your answer. I will look into it (y)