Hi,
I would like to get my current coordinates displayed without a GoogleMaps map, because the GPS class only retrieves the location when I also move, that is not in my plan.
I uploaded the app in the appstore and pointed to the API as described in this thread: https://www.b4x.com/android/forum/threads/google-maps.63930/#post-404386
My current code:
And i get this error:
Is it possible at all with this API to read only the coordinates without map?
I would like to get my current coordinates displayed without a GoogleMaps map, because the GPS class only retrieves the location when I also move, that is not in my plan.
I uploaded the app in the appstore and pointed to the API as described in this thread: https://www.b4x.com/android/forum/threads/google-maps.63930/#post-404386
My current code:
B4X:
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim btn_navigate As Button
Dim btn_getlocation As Button
Dim lbl_location As Label
Dim lbl_loacation2 As Label
Dim Maps As LatLng
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
Activity.LoadLayout("frm_main")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub btn_getlocation_Click(Latitude As Double, Longitude As Double)
Maps.Initialize(Latitude, Longitude)
lbl_location.Text = Maps.Latitude
lbl_loacation2.Text = Maps.Longitude
End Sub
And i get this error:
B4X:
java.lang.Exception: Sub btn_getlocation_click signature does not match expected signature.
Is it possible at all with this API to read only the coordinates without map?