LocationManager Library

XverhelstX

Well-Known Member
Licensed User
Longtime User
Hey everyone,

Here is the LocationManager Library V1.00.

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.

Have fun!
Tomas
 

Attachments

  • LocationManager1.0.zip
    275.4 KB · Views: 2,031
  • LocationManager1.1.zip
    276.3 KB · Views: 4,713
Last edited:

Cableguy

Expert
Licensed User
Longtime User
Very nice, I've wondering about this...
 

bluedude

Well-Known Member
Licensed User
Longtime User
Cool. However, does it use a hidden Google API on the background to post the cellid to a web service?

Just wondering because if that is the case i'm not going to use it :) Otherwise, great!
 

XverhelstX

Well-Known Member
Licensed User
Longtime User
Nope it doesn't.
it uses the LocationManager from Android.
LocationManager | Android Developers

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.

Tomas
 

bluedude

Well-Known Member
Licensed User
Longtime User
Tomas,

Ok, cool! LiveView is that extension device to view a summary of some of your phone functions?

I though it was a failure sales wise.

You are up to speed with all developments :) Any plans to make this a job soon?
 

vb1992

Well-Known Member
Licensed User
Longtime User
Very cool!
Works!


Simpel, Example file attached.


oops, Didn't notice the sample program in your ZIP!!!
 

Attachments

  • Example.zip
    5.6 KB · Views: 1,713
Last edited:

peacemaker

Expert
Licensed User
Longtime User
How to make sure that this Location lib works ?
Is it OK for GSM networks ?
I can see only:
<!>com.rootsoft.locationmanager.LocationManager1 36<!> LocationManager has been initialized.

No events occured to log coordinates.

Should requestLocation be used periodically ?
Google API shows that there are several variants of requests with parameters. Here - no parameters at all.
 

XverhelstX

Well-Known Member
Licensed User
Longtime User
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

Tomas
 

peacemaker

Expert
Licensed User
Longtime User
It's clear, but this event cannot be caught during debugging.
 

susu

Well-Known Member
Licensed User
Longtime User
I bought LiveView as a bargain on ebay. ;)
10 euros or something. (Normally around 50 i think)

Hi Tomas,

I bought a LiveView too! Hope you can release LiveView library soon :D
 

XverhelstX

Well-Known Member
Licensed User
Longtime User
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...


Sent from my SE Xperia Play using Tapatalk.
 

manios

Active Member
Licensed User
Longtime User
Hi XverhelstX,

Great Lib!

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?
 

susu

Well-Known Member
Licensed User
Longtime User
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...


Sent from my SE Xperia Play using Tapatalk.

Oh no! Why you don't tell me sooner? I just bought it 6 hours ago :BangHead:
 

XverhelstX

Well-Known Member
Licensed User
Longtime User
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.

Tomas
 

susu

Well-Known Member
Licensed User
Longtime User
I just kidding :D I bought on Ebay too so I hope it will be usable.
 
Top