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... B4A Question Security Exception Read_Phone_Satate in Lollipop - corwin42 (first post)    Aug 24, 2015   (3 reactions) Any way to know which permisses needs to be adde by code? just avoid user complains that are not good for the app. As Erel said, this is a special case because it is a bug in Samsungs Android 5.0 Firmware. If you look into the Android documentation you will see that READ_PHONE_STATE is not needed for Phone.GetDataState(). Unfortunately Samsung messed something up in their firmwares that requires this right. Only Samsung knows, why.... Page: 1   2   3   4   5   6   7   |