Thanks, I have followed that tutorial, and I have wrote a increidible software that detects all the radar cameras and alert me with in my country. The app works ok and I think I understand how the GPS works.
I would like to have a Type object with the name, speed limit, orientation and ALSO location.
The problem is the field "loc as location", if I remove it and I left only.....
Type Coche(Name AsString,........, speed As Float)
,the app works ok.
But then I have to write an independent Variable like "Public PositionRadar as Location"
I would like to have all the fields togheter at teh same type and not to have to create one variable for the "Name As String, speed As Float, loc As Location" and other separated for Location.
I hope I can explain myself.
Why this NOT works....
Sub Process_Globals
Type Radar(Name As String, speed As Float, loc As Location )
End Sub
Sub Globals
Public Target As Radar
End Sub
Sub Activity_Create(FirstTime As Boolean)
Target.loc.Initialize
Target.loc.Latitude=41.61208
Target.loc.longitude=-30.20804
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
And this works:
Sub Process_Globals
Type Radar(Name As String, speed As Float)
End Sub
Sub Globals
Public Target As Radar
Public TargetPos As Location
End Sub
Sub Activity_Create(FirstTime As Boolean)
TargetPos.Initialize
TargetPos.Latitude=41.61208
TargetPos.longitude=-30.20804
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Best regards