Satellites.Size Error

ValDog

Active Member
Licensed User
Longtime User
I am working on a function to alert me when GPS is lost, and found a routine in the forum like the following (which I am using in my Main Activity):

Sub GPS_GpsStatus (Satellites As List)
Dim GPSFix As Boolean
GPSFix = False
For i = 0 To Satellites.Size - 1
Dim Satellite As GPSSatellite
Satellite = Satellites.Get(i)
If Satellite.UsedInFix = True Then GPSFix = True
Next
...
End Sub

When I compile, I get a Java error related to the Satellites.Size method call:

...
For i = 0 To Satellites.Size - 1
javac 1.6.0_31
src\b4a\gsight\main.java:1455: cannot find symbol
symbol : method getSize()
location: class b4a.gsight.satellites
final double limit445 = (int)(mostCurrent._satellites.getSize()-1);


It acts as if it is not recognizing Satellites as a List object. I use a very similar routine in another Activity, also with the Satellites.Size method call - which works just fine.

Does anyone have a clue as to what may be the cause of this error?
 

Stulish

Active Member
Licensed User
Longtime User
i take it that the code is still within the GPS_GpsStatus sub routine??

just asking
 
Upvote 0
Top