This library is able to determine your location without using wifi or GPS but the cell tower (cell-id).
The library has 3 functions:
- Initiliaze
- requestUpdate
- stopListening
and the following subs:
B4X:
Sub Location_LocationChanged (Longitude As Double, Latitude As Double, Altitude As Double, Accuracy As Float, Bearing As Float, Provider As String, Speed As Float, Time As Long)
End Sub
Sub Location_ProviderDisabled (Provider As String)
End Sub
Sub Location_ProviderEnabled (Provider As String)
End Sub
Sub Location_StatusChanged (Provider As String, Status As Int)
End Sub
Attached library contains the library files, a readme and a sample app.
If anyone is interested, I also ported the Mobile Location API from Ericsson to Basic4Android. (This does however connects to the internet.)
I also ordered a SE LiveView and I probably will port the LiveView SDK over too.
Should requestLocation be used periodically ?
Google API shows that there are several variants of requests with parameters. Here - no parameters at all.
Try the sample on the first post. GSM should be supported.
When you call requestLocation, the following subs is called:
B4X:
Sub Location_LocationChanged (Longitude As Double, Latitude As Double, Altitude As Double, Accuracy As Float, Bearing As Float, Provider As String, Speed As Float, Time As Long)
End Sub
Here you can extract all information. Coords, altitude, accuracy, etc
Actually, to be honest, LuveView is a piece of sh... . I Received mine yesterday, when working with it, it sometimeq randomly desconnects, laggs, battery drain, and when i tried to charge this night, it didn't, so now im with a broken device...
I have some questions:
1. How often is the location updated once "requestlocation" ist started?
2. Will the network-provider notice the use of the function?
Actually, to be honest, LuveView is a piece of sh... . I Received mine yesterday, when working with it, it sometimeq randomly desconnects, laggs, battery drain, and when i tried to charge this night, it didn't, so now im with a broken device...
I'm sorry, but it's really not such a good product. Maybe it is possible because I bought mine on Ebay. I don't know. However if you google LiveView up, there are a lot of threads with problems on LiveView disconnecting, etc.