153 thoughts on “Google Map GPS Cell Phone Tracker

  1. jatinder

    Sorry to bother you Nick, but I am new to web. got your link, tried a lot but in vain. in which php should i put the code and where, or maybe in database. but how?

    many thanks,

    Jatinder…

    Reply
  2. mike

    hi, nick.
    I have some problem.
    If I want to send router ip address by using your mobile application or any other. then what java api i should use?or modify in your mobile application?

    Reply
  3. same60

    Hi. I have some trouble using your app with my nokia 5800 XpressMusic. I get an error:
    “NetWorker.getUrl: java.lang.IllegalArgumentException:
    bad image format Map could not be downloaded.”

    I read all the posts, using all the fix mentioned, but actually I still get this error.

    Thank you very much.

    PS: the old version worked for me on a Nokia N95. Good piece of code. 😀

    Reply
  4. same60

    Now it works perfectly. Probably there was some problem on ‘getgooglemap2.php’.
    Can you upload your last gpstracker’s package on sourceforge?

    Again, thank you very much.

    Reply
  5. mike

    hi, nick.
    I have some problem.
    If I want to send router ip address by using your mobile application or any other. then what java api i should use?or modify in your mobile application?
    plz give the answer above question.

    Reply
  6. mike

    Hi, n thanx for reply.
    My problem is that I am making project for my campus.
    we have wi-fi facility.so with the help of router i have to find positon of mobile user.
    User’s mobile application will send nearby router address.
    so how to do this?
    Will u help me?

    Reply
  7. mike

    hi,i installed your application in my mobile,but got an application error that “no class def found error
    java/lang/noclassdeffounderror javax/microedition/location/location exception..

    Reply
  8. same60

    @aditya
    On 5800 XpressMusic it works fine, cuz i got the same phone.

    @Nick Fox
    Hi nick, the program works fine but it crashes after 1h40m of stress-test.
    It crashes sending position each 1 minute and also each 10 minutes. I dedicated two days of testing.
    Death by ‘Out of memory’.
    You can also reply to my mail.

    Have a nice day, bye 🙂

    Reply
  9. Nick Fox Post author

    @same, I’m not sure why that’s happening. I have had that application running for *many days* without crashing. It’s been downloaded close to 200,000 times and I’ve not heard of that problem before.

    Did you significantly change the code and created a situation where objects are not being released?

    @aditya do you have gps turned off on your phone?

    Nick

    Reply
  10. Nick Fox Post author

    Kenny

    What line did that happen on and in what class? Can you run the phone in the debugger and put breakpoint somewhere?

    Nick

    Reply
  11. Kenny

    Thanking you Nick for quick replying,
    This Apps runs in NetBeans 6.5 without error. when I try run it from my mobiles app initializing perfectly. I can change setting also. then it will ask from me to use my air time & when I give the permission it says “Maps updating in every 02 minuets” . after 02 minutes it gives that error.
    gps.java.lang.nullpointerexception=0

    I think that this is due to cant get gps coords from my phone. but these phones show maps with google.maps & some others sake kind of apps. is their any ways to handle,
    locationProvider == null situation,
    best regards,
    Kenny

    Reply
  12. Nick Fox Post author

    You need to try and debug on the phone to see where it’s failing. Here is an OLD article on how to do that:

    http://blogs.sun.com/delabassee/entry/on_device_debugging

    You may need to google more on that. It has been *years* since I have used netbeans. I use eclipse now. But if that doesn’t work, then you need to do a lot of logging to the screen to see where it’s failing. Kind of like doing printf statements, printing out variables and where you are in the program flow. You should be able to narrow down exactly what line the error is occurring on.

    Nick

    Reply
  13. aditya

    hi nick
    still i am getting error:get url response 402.
    n i check my gps it is enabled.
    ok can u tell me how to cinfigure it with netbeans 6.5.
    i have installed java(TM)ME platform. and wireless toolkit2.5.2.
    now what should i do?

    Reply
  14. kenny

    HI Nick,
    I got the reason for this error. i have set trapped gps latitude & longitude within every 01 minute. it says lat=0.0 lng=0.0. It seems to GPS device denied sends it’s results to gpstracker. whats next. is their any authentication issues? sometime phone’s os may think gpstracker as a virus or same kind of apps.

    Reply
  15. Nick Fox Post author

    Kenny

    There is a very good chance that your provider may be blocking gps to developers. Fro instance, Sprint, here in the U.S. will not allow developers access to gps on their cdma cell phones unless they become a Sprint partner for $5,000. Hard to believe but true… I have a test for you. Go read this article and install and run the very short gps application on your phone:

    http://developers.sun.com/mobility/apis/articles/location/

    If it doesn’t get gps, it could mean that it’s being blocked.

    Who is your cell phone provider?

    Nick

    Reply
  16. mark poole

    Hi Nick
    I’ve developed an contact app for taxi drivers and feel the gps google map tracker app your developing would make a real addition to the site.
    Proposed page scheme:
    Posistioned under yellow site context
    GPS, Google map displaying drivers position
    Question:
    What steps do I take to get into implementing the google map gps tracker app into the php page?
    Mark

    Reply
  17. mark poole

    The txt ‘formone’ is my first contact form, ever.
    Please reply, to a designer turned automa whom could use some help, I forget please. GPS… is there any co-ordinate honing tringulation, bee a mad read for me. Sabby76

    Reply
  18. Shrikant

    Hello

    can anybody help me.

    I found this code and it’s working good but i think is that it just a demo,how to track the exact location of any cell phone,i have to take help of any GPS service provider.this code is picking data from database and showing it on Google map but how to store these values in database.

    Please help me ASAP. If any service provider provides service to track mobile phones please let me know.

    My email id – [email protected]

    Reply
  19. aditya

    hi Nick,
    i am getting an error
    networker geturl response code:404
    map could not be downloaded
    while running in netbeans ide 6.9
    what should i do?

    Reply
  20. Juraj Stolc

    Hi Nick, everyone,

    I have found this project few week ago and it looks interesting to me. I have been doing some testing and it looks somehow working.

    I’d like to make some changes eg.:
    – change imperial units to metric
    – add some more refresh interval choices
    – stop sending coordinates when delta distance < constant (when not moving)
    – stop downloading map to device
    – and some more changes to minimize data transfer

    I can do it by myself (hopefully), but I can't find a useful builder for J2ME binaries. Can you please guide me somehow ?

    Just post a message, I am going to monitor this page for some time 😉

    Thank you in advance.

    Reply
  21. Nick Fox Post author

    I used netbeans to compile the application. Look for the readme.txt file, it will explain the setup.

    Nick

    Reply
  22. Juan Arcila

    I’m new with the app and loving it already. Is there a way to run this app in the background using an Nokia Symbian S4 ?

    Reply
  23. Nick Fox Post author

    Juan, you can probably create a background app on Symbian but I don’t think you can using j2me. I haven’t really looked into it. You’ll have to look into the Symbian documentation.

    Nick

    Reply
  24. bangun arief

    hi nick

    ihave some trouble

    The image “http://111.221.42.157/xampp/GPSTracker/getgooglemap2.php?lat=-6.22740511&lng=106.7044808&mph=0&dir=0&dis=0&dt=sat%20nov%2013%2004:22:13%20GMT%202010&lm=589825&pn=bangun&sid=1289622130790&acc=0&iv=true&info=morestuff” cannot be displayed, because it contains errors.

    can you help me

    Reply
  25. Frank

    Hi,

    I am trying to install your applicaiton, but when I call up the url on the phone I get ‘directory listing denied’. Dont I need to specify a default document on the iis website?

    Reply
  26. Nick Fox Post author

    Hey Frank

    It’s been a while since I looked, but from what I recall you need to point your browser to DisplayMap2.aspx. I don’t think there is an index.html file.

    Nick

    Reply
  27. John Groves

    Hi Nick,

    I’m currently testing this app and got it reading from MySQL and a Nokia 5800. The PHP and MySQL I’m fine with but I’m wanting to add another atribute to the phone app. Basically a unique identifier of which phone is being tracked. Can you please give me some pointers as to where I can add this.

    Many thanks for any help you can offer,

    John

    Reply
  28. Frank

    Hi,

    Thanks for the update. I was referring to the part of the process where the user enters:

    http://www.bconserv.com/gpstracker/phone

    I changed the iis definition to call up the download.aspx document and now I am getting the following when the phone user clicks on the download link on that page:

    On my Droid, here is what happens:

    When I call up the url above (with my actual domain name specified), I receive the following in the browser window:

    GPS Tracker download for cell phones
    GPST2.0.jad (which is a link)

    When I click on download link, I receive the following test lines displayed in the browser window and nothing else happens:

    Midlet-1: GPSTracker,/res/gps32.png,GPSTracker
    MIDlet-Icon: /res/gps32.png
    MIDlet-Info-URL: http://www.websmithing.com
    MIDlet-Jar-Size: 9179
    MIDlet-Jar-URL: GPST2.0.jar
    MIDlet-Name: GPSTracker2.0
    MIDlet-Permissions: javax.microedition.io.Connector.http, javax.microedition.location.Location
    MIDlet-Vendor: Websmithing
    MIDlet-Version: 2.0
    MicroEdition-Configuration: CLDC-1.1
    MicroEdition-Profile: MIDP-2.0

    On a iPhone, I receive the same text for step 1, but when I click on the download link, a popup window appears which says:

    Download Failed
    Safari cannot download this file

    How do I get the application to download/run on a phone?

    Thanks

    Reply
  29. Nick Fox Post author

    Hey John

    I assume that you want to use the phone’s unique ID, imei:

    System.getProperty(“phone.imei”);

    get that from the phone and create a new row in the DB table called imei and insert that.

    Nick

    Reply
  30. Nick Fox Post author

    Frank

    Give me the full url of the website you are having problems with. Make sure to include all the variables after the ? mark, the lat,lng etc…

    Nick

    Reply
  31. Nick Fox Post author

    Frank

    I get now, wasn’t paying attention. You need to add the mime type to you web server.

    This is for iis, http://j.mp/cWMpml

    google “add .jad mime type to apache” if that’s what you need.

    Nick

    Reply
  32. John Groves

    Hi Nick,

    Thanks for getting back to me. Yes this is ideal using the phone imei. I’m not sure where I am looking though, I can see the query strings that are updating the database in ‘updategpslocations.php however I’m struggling to find where I can set the

    System.getProperty(“phone.imei”);

    to then be able to spit it into the db along with the gps locations.

    Any pointers are much appreciated. I’m on day 2 of learning how to use Netbeans…

    Many thanks,

    John

    Reply
  33. Frank

    Hi,

    I made sure that both mime types are being served up by the iis server, but I am still getting the same problem when I try to call up the application on the phone (same list of messages, then nothing happens on the droid, same error message on the iphone).

    Reply
  34. Nick Fox Post author

    Frank

    I reread your message above. This phone application is j2me (java micro-edition) which runs on a lot of phones but not iphone or android. iPhone uses objective-c and Droid does use java but it uses the Android framework instead of j2me.

    Both of those phones are going to require you writing the phone application in 2 other languages.

    Nick

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.