B4A Question Check Internet connection - robife    Mar 24, 2013 As Boolean Dim p As Phone If (p.GetDataState == "CONNECTED") Then Return True End If If (p.GetSettings ("wifi_on") == 1) Then Return True End If If (p.GetDataState == "DISCONNECTED") Then Return False End If If (p.GetDataState == "SUSPENDED") Then Return False End If... B4A Question java.lang.SecurityException: Requires READ_PHONE_STATE - Erel (first post)    Aug 14, 2019 Phone.GetDataState doesn't require any permissions (https://developer.android.com/reference/android/telephony/TelephonyManager.html#getDataState()).
Do you have access to the full error message?... B4A Question How to check or internet connection - johnaaronrose    Sep 15, 2017 . I have just tried: myDevice.Initialize("") If myPhone.GetDataState.EqualsIgnoreCase...("myPhone.GetDataState="&myPhone.GetDataState, True) ToastMessageShow("myDevice.Connected="&myDevice.Connected, True) End If But it always gives myPhone.GetDataState... to see the corrected coding including a test to see if the device is a phone or a tablet.... B4A Question Internet Connection & CloudRail Problems - stevel05 (first post)    Nov 11, 2017 The phone GetDataState and NetworkType relate to the CellData network, so DISCONNECTED and UNKNOWN are not unexpected results for a tablet unless it also has a SIM card.... B4A Question SDK33 - how to get unique number of phone - petr4ppc    Mar 22, 2023 Dear friends, please for advice, I think this question is not first here, but I can not find similar question, please for advice how to get unique number of smartphone if I am using sdk 33 with B4A? Best regards p4ppc... B4A Library Firebase phone number authentication - Enrico Fuoti    Dec 17, 2022   (36 reactions) Here is my second lib, a wrap to integrate firebase auth phone number authentication. It is working nicely on my app. for reference visit: Authenticate with Firebase on Android using a Phone Number FirebaseAuthPhone Version: 1.9 Events: phoneverification (success As Boolean, info As String) phonesignedin (success As Boolean, User As FirebaseAuthPhoneUser, info As String) oncodesent... As String) Methods: Initialize (eventName As String) startPhoneNumberVerification (phoneNumber As String... B4A Question Serversocket.GetMyIP returns strange result - corwin42    Sep 21, 2012 ? I now check with Serversocket.GetMyWifiIP (if it is 127.0.0.1 wifi is not connected) and with Phone.GetDataState (If it is CONNECTED, then data is connected). Any better ways to check for a valid data connection?...In the past I checked for an internet connection with Serversocket.GetMyIP. When it returns 127.0.0.1 the device was not connected. On my Galaxy Nexus with JB 4.1.1 Serversocket.GetMyIP returns... B4A Question I searched first - Erel (first post)    May 30, 2012 The string values of Phone.GetDataState are listed here: Basic4android Search: Phone.GetDataState SUSPENDED means that there is a connection but data connection is suspended.... B4A Question Is there a way to get connection status? - mitobobo (first post)    Sep 9, 2014   (1 reaction) Mauro, do you want to check Internet connection, is that correct? Dim Phone As Phone Dim server As ServerSocket If server.GetMyWifiIP == "127.0.0.1" Then ' IF WIFI IS NOT CONNECTED If(Phone.GetDataState = = "DISCONNECTED" OR Phone.GetDataState == "SUSPENDED" OR Phone.IsAirplaneModeOn = = True) Then ' IF MOBILE DATA IS OFF Log("No Internet connection") Else ' IF MOBILE DATA IS ON Log("Internet connection available") End If Else... B4i Library iPhoneNumber - validate phone numbers - Erel    Nov 18, 2025   (5 reactions) This is a compilation of this open source project: https://github.com/iziz/libPhoneNumber-iOS
Usage:
Add to main module
#AdditionalLib: iPhoneNumber.xcframework.b4i
Validate:
Log(IsNumberValid...("NBPhoneNumberUtil").RunMethod("sharedInstance", Null)
Dim PhoneNumber As NativeObject = util... As NativeObject = util.GetField("gerror")
If error.IsInitialized Then
Log(error... Page: 1   2   3   4   5   6   7   |