PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV Mobile 2024 → Open settings on Android / IOS phone
Open settings on Android / IOS phone
Started by zwaailicht, Feb., 16 2018 9:40 PM - 2 replies
Registered member
15 messages
Posted on February, 16 2018 - 9:40 PM
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
Registered member
28 messages
Popularité : +2 (2 votes)
Posted on February, 19 2018 - 3:38 PM
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
Registered member
15 messages
Posted on February, 20 2018 - 6:59 AM
Thanks for your answer. I will look into it (y)