Dim MyLocation, CarLocation as Location
MyLocation.BearingTo (CarLocation)
I wish to store the CarLocation in DB so when user click save, it will be saved on the DB, and when he open the app again, I can point to the car based on the saved location
but when I write this:
CarLocation = (Cursor1.GetString("CarLocation"))
getting these error:
Compiling code. 0.22
Generating R file. 0.00
Compiling generated Java code. Error
B4A line: 145
CarLocation = (Cursor1.GetString(\
javac 1.6.0_24
src\Barrier_Plus\Binyat\compasstask.java:591: inconvertible types
found : java.lang.String
required: android.location.Location
mostCurrent._carlocation.setObject((android.location.Location)((mostCurrent._cursor1.GetString("CarLocation"))));
^
1 error
how to overcome this?
MyLocation.BearingTo (CarLocation)
I wish to store the CarLocation in DB so when user click save, it will be saved on the DB, and when he open the app again, I can point to the car based on the saved location
but when I write this:
CarLocation = (Cursor1.GetString("CarLocation"))
getting these error:
Compiling code. 0.22
Generating R file. 0.00
Compiling generated Java code. Error
B4A line: 145
CarLocation = (Cursor1.GetString(\
javac 1.6.0_24
src\Barrier_Plus\Binyat\compasstask.java:591: inconvertible types
found : java.lang.String
required: android.location.Location
mostCurrent._carlocation.setObject((android.location.Location)((mostCurrent._cursor1.GetString("CarLocation"))));
^
1 error
how to overcome this?