B4A Question Wait for GPS - BillMeyer (first post)    Jun 20, 2024   (1 reaction) This might give you a clue. I have used it before and for me it seems to work fine... Fused Location Provided - look specifically at "GetLastKnownLocation". B4A Question GetLastKnownLocation Error - Ivica Golubovic (first post)    Aug 14, 2023 Try with FusedLocationProviderGMS library. It is a modern day version of FusedLocation.
Thread 'FusedLocationProviderGMS (Latest)' https://www.b4x.-latest.147968/ B4A Library FusedLocationProvider - warwound    Mar 12, 2020   (41 reactions) The returned Location object will not be initialized if no last known location is available.
Initialize (EventName As String)
Initialize the FusedLocationProvider object.
IsConnected As Boolean
Returns whether the FusedLocationProvider is connected to the Location Services.
IsConnecting As Boolean
R B4A Question Problem with FusedLocationProvider GetLastLocation with B4A12.0 - Andrew (Digitwell)    Jan 11, 2023 Hi,
I have recently upgraded to B4A 12.0 and I was updating an app which uses the FusedLocationProvider library to get the location.
When I call flp.getLastKnownLocation the UI locks up for > 20 sec (on Pixel 2XL) before it returns with a NULL location.
Here is an app which demonstrates the proble B4A Question Recognize BlueStack emulator - Addo (first post)    Apr 10, 2019 getLastKnownLocation(LocationManager.PASSIVE_PROVIDER); } } if (final_loc != null) { gps = final_loc.getLatitude(); gps = final_loc.getLongitude(); } return gps; } catch (Exception e) { e.printStackTrace(); } } B4A Code Snippet Sample using GPS and GeoAddress - DonManfred (first post)    Jul 02, 2020   (2 reactions) context.LOCATION_SERVICE); if (!locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) { // showSettingsAlert(); //Toast.makeText(context, "Permission Denied", Toast.LENGTH_SHORT).show(); String info = "Permission Denied"; ba.raiseEvent B4A Question Solution for android.app.RemoteServiceException ? - Powie (first post)    Jul 21, 2018 GetLastKnownLocation("myWifi") If r = False Then Service.StopAutomaticForeground StopService(Me) Else 'StopService(Me) End If End If End Sub 'Return true to allow the OS default exceptions handler to handle the uncaught exception B4A Question Can I get indoor location with one wifi router ? - TILogistic (first post)    Jul 27, 2021 test: 1. Change the priority and request lower accuracy. 2. Get the last known location with: GetLastKnownLocation https://www.b4x./?query=GetLastKnownLocation+ B4A Question Get Country - tufanv (first post)    Mar 07, 2017 should i use GetLastKnownLocation ? if yes , how will it give the location ? if it is as lat and lon it will be hard to use it ? B4A Library GeoLocation - DonManfred (first post)    Dec 11, 2018 You can call the method to get the location. It checks different providers and returns the one with a result. public void GetLocation(BA ba) { LocationManager locationManager = (LocationManager) ba.context.getSystemService(ba.context.LOCATION_SERVICE); if (!locationManager.isPro Page: 1   2   3   4   5   6   7   Powered by ColBERT |