I have a Panel.Text containing the miles driven. I want to update this on the fly with information from my GPS service. A panel cannot be defined within Global, so I don't know how to this.
Simple example of a foreground service that keeps the process running in the background. The current location is shown in the persistent notification. The app starts at boot and theoretically should run all the time. It also schedules itself to run with StartServiceAt. This can help in cases...
Simple example of a foreground service that keeps the process running in the background. The current location is shown in the persistent notification. The app starts at boot and theoretically should run all the time. It also schedules itself to run with StartServiceAt. This can help in cases...
What exactly do you want to update.
Where does the data come from and at what frequency ?
What amount of data do you want to display ?
Without knowing more in detail what you want to do it difficult to give a concrete advice.
You can have a variable containing the text and reset the Label.Text property.
What exactly do you want to update.
Where does the data come from and at what frequency ?
What amount of data do you want to display ?
Without knowing more in detail what you want to do it difficult to give a concrete advice.
You can have a variable containing the text and reset the Label.Text property.
Sub Process_Globals
Dim KM as String
End Sub
Sub Globals
Dim lblKM as Label
End Sub
Sub Activity_Create(FirstTime As Boolean)
.......
lblKM.Text="Miles driven: "&KM
End Sub
From my GPS Service I want to update KM in the background and need to refresh the lblKM.Text every time.
And what is KM ?
And all this in the background !
You need to search in the forum on how to manage GPS in the background, i have never used it.
With what frequency do you want to update the driven distance.
Do you actually already read the data given in the GPS.LocationChanged event ?
And what is KM ?
And all this in the background !
You need to search in the forum on how to manage GPS in the background, i have never used it.
With what frequency do you want to update the driven distance.
Do you actually already read the data given in the GPS.LocationChanged event ?
Yiou need to also correct the title of your thread: Panel.Text should be Label.Text. You were so excited to mark your thread as 'Solved' that you forgot to make the title correction. Leaving it the way it is can really confuse many members, particularly noobies.
Yiou need to also correct the title of your thread: Panel.Text should be Label.Text. You were so excited to mark your thread as 'Solved' that you forgot to make the title correction. Leaving it the way it is can really confuse many members, particularly noobies.