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

Rene Barrera

Member
Licensed 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

DonManfred

Expert
Licensed 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
 

Attachments

Rene Barrera

Member
Licensed 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
 

Rene Barrera

Member
Licensed 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
 
Top