LocationManager Library
Hi Erel,
I am running LocationManager Library example.zip
http://www.b4x.com/forum/additional...al-updates/13337-locationmanager-library.html
It is not giving Latitude and longitude on android phone the code is as follows.
-----------------------------------------------------
Sub Globals
Dim lm As LocationManager
End Sub
Sub Activity_Create(FirstTime As Boolean)
lm.Initialize("Location")
Activity.AddMenuItem("Update location","mnuLocation")
Activity.AddMenuItem("Stop Listening","mnuStopListening")
End Sub
Sub mnuLocation_Click
lm.requestLocation
End Sub
Sub mnuStopListening_Click
lm.stopListening
End Sub
Sub Location_LocationChanged (Longitude As Double, Latitude As Double, Altitude As Double, Accuracy As Float, Bearing As Float, Provider As String, Speed As Float, Time As Long)
Msgbox("Longitude: " & Longitude & CRLF & "Latitude: " & Latitude & CRLF & "Altitude: " & Altitude & CRLF & "Accuracy: " & Accuracy & CRLF & "Bearing: " & Bearing & CRLF & "Speed: " & Speed,"Location")
End Sub
Sub Location_ProviderDisabled (Provider As String)
Msgbox("Provider","Provider Disabled")
End Sub
Sub Location_ProviderEnabled (Provider As String)
Msgbox("Provider","Provider Enabled")
End Sub
Sub Location_StatusChanged (Provider As String, Status As Int)
Msgbox("Provider: " & Provider & CRLF & "Status: " & Status,"Status Changed")
End Sub
-----------------------------
Suggest the solution to get location details.
BR
Nitin:sign0085: