Android Question Problem: [SOLVED] Widget that gets GPS Location does not display anything

Rene Barrera

Member
Licensed User
Longtime User
Hi there,

I have a widget that gets GPS Location, I got Lat and Lon (into the log), however, the widget does not show up anything in the corresponding labels. I upload the widget to see if anyone could guide me to see where i am mistaken

Thanks in advance
 

Attachments

  • GPSUbicacionWidget.zip
    374.6 KB · Views: 205

DonManfred

Expert
Licensed User
Longtime User
B4X:
Sub PintaInfo(Latit As String, Longi As String)

    rv.SetText("lblLat", "Lat = " & Latit)
    rv.SetText("lblLon", "Lon = " & Longi)
   
    Log("LATITUD:    " & Latit)
    Log("LONGITUD:   " & Longi)
   
    rv.UpdateWidget ' NEW
   
End Sub

gpswidget.png
 

Attachments

  • gpswidget.zip
    22.7 KB · Views: 187
Upvote 0

Rene Barrera

Member
Licensed User
Longtime User
Hi there,

I have a widget that gets GPS Location, I got Lat and Lon (into the log), however, the widget does not show up anything in the corresponding labels. I upload the widget to see if anyone could guide me to see where i am mistaken

Thanks in advance

Hi Don,

Thank you so much again, the problem is already SOLVED with this change. What is the rule to follow when trying to display content in labels?

Best regards
 
Upvote 0

Rene Barrera

Member
Licensed User
Longtime User
Hi Don,

Yes, that was the question and i got it now, i have to update each change i make.

Thank you very much for your support
 
Upvote 0
Top