I’m happy to announce that the test webpage for the Google GPS Cell Phone Tracker is now operational. You can test your cell phone tracker using this app!
I’m happy to announce that the test webpage for the Google GPS Cell Phone Tracker is now operational. You can test your cell phone tracker using this app!
150 Comments to 'Google Map GPS Cell Phone Tracker'
February 15, 2010 6:26pm
Hi. What is this all about? Just curious. Have a great evening.
February 21, 2010 12:38am
This is software that lets you track cell phones and then view where you’ve been using google maps. I’m making tutorials right now explaining the software.
February 25, 2010 4:37am
Hi Nick,
Its a wonderful Soft,but could you make an easy step by step tutorial for this Soft.
March 22, 2010 6:11pm
where can i get the software
March 27, 2010 1:36am
i want this software
can i use in korea???
March 29, 2010 12:56am
Hello, I found your code through google.
I think you did an excellent job, and it’s great that you’re sharing it with the world.
I want to do something similar, but instead of running my own apache server, (which requires an always-on pc), I want to run it on a paid server for example hostgator.
Also, instead of a cell-phone I want to use the chinese GPS tracker TK102, which can be configured to send a TCP packet to a specific IP and port, through GPRS.
It should be possible. What do you think?
Again, great job. Thank you.
April 4, 2010 1:38am
Hey your site is riddled with broken links, i found the forums once but i cant find them again, The software works well Just a side note the Read Me is confusing but i would be happy to write up a revised one for you,
Have you noticed a problem with the time? more specifically the Year shows between 1999 and 2008 and the time of day is always am or inverted of what it should be? where should i look to fix this? is this a java issue or a problem with the Networker.java?
April 5, 2010 10:40am
I actually made something freakishly similar, but it was using Google Gears based web browsers. It’s for force tracking in 24+ hour paintball events.
Now I’ve got about 4 days to get a JME app for phones working as a transmitter, not even bothering with a phone side display before a major event!
April 5, 2010 11:13am
@Lee – I’m currently in the process of making version 3 of the software. Thank you for pointing out the time problem. I actually wouldn’t mind help with the Readme file. Lee, could you please point out the broken links, it may have been when I transitioned to a new website. Thanks!
@Ilias – yes, as long as your device is configurable and can send location updates to a website, it should work fine.
@Jeong – yes, it’s being used in many countries around the world. Over 37 last time I counted.
April 8, 2010 1:30am
Its mostly anything related to webxxxx.com/portal/xxxxx
April 8, 2010 9:28pm
Hi, Excellent work since Version 1 i love it it’s simple and runs fast (most important hehe) i just have 1 question.. im trying to use gpstracker on i265 devices but is far as i know they do not support MIDP-2.0 and MIDP-1.0 doesnt support floating point and im stuck there i cant compile it for 1.0.. you have any advice i can get to make it work
April 17, 2010 2:46pm
I am definately more computer illiterate than your average person. Where/how do I create my own website to include it on this application?
April 18, 2010 1:28am
Re: the time being out of sync a “simpler”(take with a glass of wine) is to change the sql procedures refrences from “gpsTime” to “LastUpdate” and that will use the local servers time. Then from there should a different value be needed the “gpsTime” is still there.(not sure why its so far off
I.e. My gps time being sent to server is April 18th 00:09:XX 2010 the gpsTime will show December 18th 2009 12:09:XX Havent quite figured that one out yet, my only guess is the Versions of either Apache, mySql or php. Php is newer so that may be where the problem exists the java client (verified by checking request logs) is sending the correct information)
April 20, 2010 1:51am
@kristen
There is a all in one package that will work well (some work needs to be done to secure it) runs on several platforms and is fairly user friendly, its called Xampp you will need to forward ports to your server for outside acces but aside from that you only other problem would be a dynamic I.P. address i personally use No-Ip.com they have a great auto updating client and best of all currently free
April 24, 2010 8:56pm
Hello, I found your code through google.
I think you did an excellent job, and it’s great that you’re sharing it with the world.
I want to do something similar, but instead of running my own apache server, (which requires an always-on pc), I want to run it on a paid server for example hostgator.
Also, instead of a cell-phone I want to use the chinese GPS tracker TK102, which can be configured to send a TCP packet to a specific IP and port, through GPRS.
It should be possible. What do you think?
Again, great job. Thank you.
April 24, 2010 9:57pm
Hi Nick,
I am able to build it using Netbeans IDE. But while trying to run it on My O2 Windows Mobile 5, I am getting the following error.
“javax.microedition.location.Location” is not available on this device.
Please help!!!
Thanks-
April 24, 2010 11:24pm
Hi, Excellent work since Version 1 i love it it’s simple and runs fast (most important hehe) i just have 1 question.. im trying to use gpstracker on i265 devices but is far as i know they do not support MIDP-2.0 and MIDP-1.0 doesnt support floating point and im stuck there i cant compile it for 1.0.. you have any advice i can get to make it work
April 25, 2010 12:03am
Gil, Brad – CLDC 1.1 is required for floating point and that is required for coordinates.
Adam – I think that should work.
MHPM – I would check 2 things. a) that the cellphone has GPS turned on and b) that java is installed since you are using a j2me midlet on a windows device.
April 26, 2010 2:00am
Re: the time being out of sync a “simpler”(take with a glass of wine) is to change the sql procedures refrences from “gpsTime” to “LastUpdate” and that will use the local servers time. Then from there should a different value be needed the “gpsTime” is still there.(not sure why its so far off
I.e. My gps time being sent to server is April 18th 00:09:XX 2010 the gpsTime will show December 18th 2009 12:09:XX Havent quite figured that one out yet, my only guess is the Versions of either Apache, mySql or php. Php is newer so that may be where the problem exists the java client (verified by checking request logs) is sending the correct information)
April 28, 2010 2:01pm
Hi Nick,
Thanks for the feedback. You are right, I don’t have a active GPS device attached to my cellphone. I have Java installed on my device. Can yo help me in sending a dummy data instead of using active GPS device, so that for the time being I can test the whole functionality and build the web application accordingly and if everything goes smooth, I may test the functionality using a active GPS device. The help I need from you is to know the structure of the data that you get from the Location API, so that I can comment out the location part and use the dummy data instead.
Thanks-
April 30, 2010 1:06pm
@MHPM To test your server side programming you need only to request a particular url from your server have a look around the site and you will find it, then simply change to fit your needs
May 4, 2010 9:36am
Hi Lee,
I need to install the Midlet in my Windows Mobile and then want to send data to server. I don’t have a GPS enabled phone, so at the time of Midlet installation, the the system is throwing error with error message “javax.Microedition.Location.location” is not available on this device and some permission issue woth error code -58.
I want to bypass the GPS module for the time being and instead want to use some dummy data. I tried Fake GPS but its not working.
Thanks-
May 4, 2010 10:31am
MHPM: what exactly are you trying to do?
May 12, 2010 12:05pm
Hi Nick,
I compiled the app using NetBeans IDE 6.8.
After copying the JAR/JAD file to my Nokia E61 and E90 it installed without any problem.
My question is how do I know whether the application is accessing te GPS and Operator Data. The active connection of my Nokia phones does not show any active data connection.
Your comments and advise..
Kind Regards
Yasser
May 13, 2010 12:56pm
Hi Yasser
What you need to do is to test out the phone using the website here. You should be using the following URL:
http://www.websmithing.com/gpstracker2/getgooglemap2.php?lat=47.473349&lng=-122.025035&mph=606&dir=0&mi=0&dt=Wed%20Oct%2024%2011:19:17%20UTC%202007&lm=0&h=291&w=240&zm=12&dis=25&pn=theBrit&sid=11137&acc=95&iv=yes&info=morestuff
Then go to this page and see if your route shows up:
http://www.websmithing.com/gpstracker2/displaymap2.php
Nick
May 18, 2010 2:49pm
Mr. Fox,
First, let me say that this is probably the best bit of software I’ve seen in quite a while. I stumbled upon it via Google while trying to search for alternatives to our rather antiqued (1988) GPS Location sounders.
Second, either my development setup (NetBeans 6.8++) is has caught a case of “retard” or it is operator error, but upon working through the files for build, I encountered some problems (I also tried following your YouTube “fix-it” video) with several components.
Namely, missing classes and a wild reference to YOUR user directory for a configuration.
Please advise.
Lt. Young
May 19, 2010 2:18am
Hi Dave
I’m glad you liked the app, can you tell me what the missing classes are what user directory you are trying to reference?
thanks
Nick
May 22, 2010 7:56pm
the missing classes, arent “classes” they are resources you simply need to browse to the res. folder that comes in the Dist pack, then you should be able to compile without further issue other than user error
June 23, 2010 1:43am
Hi, I’m using GpsTracker 2. I built the DB correctly (I hope), all paremeters are correct (also the google maps API)
In the application I put the link to getgooglemap2.php file, but the response is: NetWorker.getUrl responseCode: 500 Map could not be loaded
The website part are hosted on http://www.nokiaspace.net/gpstracker/
If I go, for example, to
http://www.nokiaspace.net/gpstracker/getgooglemap2.php?lat=47.473349&lng=-122.025035&mph=606&dir=0&mi=0&dt=Wed%20Oct%2024%2011:19:17%20UTC%202007&lm=0&h=291&w=240&zm=12&dis=25&pn=theBrit&sid=11137&acc=95&iv=yes&info=morestuff
nothing appeare…
Can you help me Nick?
June 23, 2010 2:10am
Hi Matteo
Can you please comment out everything on that page and just echo out ‘hello’ to confirm that the page is where it’s supposed to be and that php is working correctly.
Nick
June 24, 2010 3:33am
Hi Nick,
just to give some more information… my website/database end seems to be installed fine..http://www.blossompark.net/project/displaymap2.php
..
just having an issue with the mobilephone side at the moment thanks
July 4, 2010 3:40pm
Matteo, you might want to setup a .htaccess to protect your privacy especially when posting on a public forum
July 28, 2010 3:11am
Hi Nick!
First of all, your gpstracker was the 1st app which operates on my mobile and in the NetBeans without any trouble!! Thanks for it.
But! I like to modify the source a little bit: save the “queryString” into a local csv file. The best practice would be using BufferedWriter, but the “import java.io.*” doesn’t show it. Could you help me?
Laszlo
July 28, 2010 2:55pm
Hi Laszlo
When you say “local csv file”, do you mean storing the file on the phone or on the website?
Nick
July 28, 2010 11:32pm
Hi Nick!
.
Thanks for quick reaction!
The “local csv” means: on the phone. (maybe it could be an off-line tracking).
Since I could manage this problem: had to change the cldc1_1.jar.
But a new disfunction appeared: the good old java method for csv file writing doesn’t work. So, I run with this project like a snail
July 28, 2010 11:40pm
Laszlo
Download the application from this link:
http://bit.ly/budiO9
There is a java class called FileExporter.java that will allow you to create a csv file. I think that should work.
Nick
July 29, 2010 1:03am
Nick!
I’m trying. Thanks. Report will go.
Laszlo
July 31, 2010 8:05am
Nick,
As I promised:
Thanks again for help and for codes, that were good for ideas, but after all I had to code myself. It was one thing, when the csvWriter started on the emulator, but on the mobile… that’s an another story.
Sum: the GPSTracker can work in off-line mode, collecting route datas in a local (mobile) csv file. (Tested on a WM6 pocket pc).
Now I’m working on the visualizer.
Laszlo
August 3, 2010 1:58am
Hi Nick,
I really am impressed with the gps tracker and would like to get it working!!…
I’m working on a similar project ,using php/MySQL/J2ME on a nokia s60 device, basically the idea is that I will be able to track a device/person/car in realtime on a website,
if there is any code of mine you could use or adapt you are welcome to it,(for example, i use the local time on the server to log the time of the update, have code for that if you want it).
it’s going slow!!….i have managed to create the mobile application using java me on a nokia s60 device which updates the webserver every 30 seconds as to the device location, i can also display the device location on a website in google maps
my next step is to get the website to
a/refresh the web page automatically every say 30 seconds
b/ have only one icon appear on the website (right now all entries from the mysql table are displayed) so as to simulate movement
I am trying to get your application working because, with your permission, understanding yours will help me to overcome the next steps in my project, for example you have a manual refresh system on your website, i hope to have an automatic on mine so understanding how yours works may help me to build mine
I,ve installed the mobile application in the Netbeans IDE 6.8 and am running it in the Nokia S60 5th Edition SDK v1.0….i’m using the defaultUploadWebsite private String defaultUploadWebsite = (“http://www.websmithing.com/gpstracker/GetGoogleMap2.php”;)
Everything seems fine in terms of the application accepts the phone number i put in and tries to access the website (it asks my permission to use the network) but it returns an error
“NetWorker.getUrl resonseCode:404 Map could not be downloaded”
Would you help me with this please ? or if you have any advice as to where to get information on the tasks i’m working on it would be greatly appreciated.
if you are too busy then I understand that too,
thanks and once again great project!!,
Rory
August 3, 2010 2:18am
Hi Rory
What you need to do is log the url to the screen so that you can test the url in a browser. So if you can turn on logging, write out the url and paste it here in a comment so that we can see what is going on.
BTW, my app does have auto-refresh, one of the drop-down boxes below the map will automatically refresh the map with a timer.
Nick
August 3, 2010 5:41am
Hi Nick,
thanks for your response….will do as you suggest and report back later….thanks again,
Rory
August 5, 2010 8:39am
hi Nick,I also want to develop same mobile application. But for my college campus area having wi-fi facility.
I have some problem.
1.I am not getting how to give friends cell phone no. to get his/her location.
2.Is it necessary to get permission of cell phone no. service provider and to buy any hardware device?
I downloaded ur code. n also run on my nokia n95 but it was giving me error nullpoint exception.
plz give me reply on kharwade.aditya@gmail.com
August 5, 2010 11:41am
Hi
1. In the phone software, there is a textbox that says phone number, you can put any kind of identifier you want there. It can be a number or a name, then you can check their route on the map using whatever you put in that textbox.
2. No, you don’t need any extra equipment, just a gps phone and a website. You do not need any permission. Please note that some cell phone companies DO block gps to developers. You just need to test it.
Nick
August 6, 2010 7:42am
Hi Nick,
sorry about the delay in getting back, the url is;
http://www.websmithing.com/gpstracker/GetGoogleMap2.php?lat=61.448233333333334&lng=23.85485&mph=0&dir=334&dis=0&dt=Fri%20Aug%2006%2015:39:14%20GMT+01:00%202010&lm=589825&pn=%20%200877525656&sid=1281105311708&acc=587&iv=true&info=null&zm=12&h=245&w=226
let me know if you need any more info,
thanks
Rory
August 8, 2010 3:11pm
Hi Rory
I found the error, the URL you pasted above has the wrong directory, it’s websmithing.com/gpstracker2 not gpstracker.
Good luck
Nick
August 9, 2010 4:49am
Hi Nick,
Get a ““NetWorker.getUrl resonseCode:404 Map could not be downloaded” with this url also
http://www.websmithing.com/gpstracker2/GetGoogleMap2.php?lat=61.448233333333334&lng=23.85485&mph=0&dir=334&dis=0&dt=Fri%20Aug%2006%2015:39:14%20GMT+01:00%202010&lm=589825&pn=%20%200877525656&sid=1281105311708&acc=587&iv=true&info=null&zm=12&h=245&w=226
Rory
August 9, 2010 4:56am
Hi Nick,
I think GetGoogleMap2.php might be case sensitive….
http://www.websmithing.com/gpstracker2/getgooglemap2.php
will try this and get back to you
Rory
August 9, 2010 4:57am
Rory, you GetGoogleMap2 capitalized…
) needs to be lowercased. This worked for me:
http://www.websmithing.com/gpstracker2/getgooglemap2.php?lat=61.448233333333334&lng=23.85485&mph=0&dir=334&dis=0&dt=Fri%20Aug%2006%2015:39:14%20GMT+01:00%202010&lm=589825&pn=%20%200877525656&sid=1281105311708&acc=587&iv=true&info=null&zm=12&h=245&w=226
Nick
August 9, 2010 5:39am
Hi Nick,
working fine now on mobile, thanks for all your help…brilliant app!!
Best wishes
Rory
August 23, 2010 6:49pm
Hi Nick,
I am getting this error in getlocation2.php
:$mysqli->multi_query: execute command denied to user ‘vedi6868_user’@'localhost’ for routine ‘vedi6868_GPS.prcGetRouteForMap’”
The project ran in WAMP sooooo nice,
But not able to run on website,
dbcnnection not a problem for sure, any CURE? please.
Thanks,
Jatinder…
August 23, 2010 7:33pm
Hey Jatinder
Could you please post the url that is giving you the error?
thanks
Nick
August 25, 2010 5:38pm
http://www.vedicastrologer.ca/getgpslocations2.php
http://www.vedicastrologer.ca/displaymap2.php
many thanks for reply,
Jatinder…
August 25, 2010 6:12pm
I think the user does not have execute privileges on that stored procedure:
$mysqli->multi_query: execute command denied to user ‘vedi6868_user’@'localhost’ for routine ‘vedi6868_GPS.prcGetRouteForMap’
read this
http://bytes.com/topic/mysql/answers/869358-execute-denied-error
Nick
August 27, 2010 8:28am
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…
August 30, 2010 12:33pm
i asked my web host to grant permission,
now okay.
thank you so much Nick…for your hard work
jatinder…
August 30, 2010 12:50pm
by the way..
how to install software on bb and iphone.
are you developing something.
September 8, 2010 12:43am
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?
September 8, 2010 6:06am
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.
September 8, 2010 10:41pm
same60, can you please send the url taht you are using to try and get the map.
Nick
September 9, 2010 7:43am
Hi Nick,
in ‘Option-> Upload Website’ I wrote http://www.websmithing.com/gpstracker2/getgooglemap2.php
Thank you for your support.
September 14, 2010 1:48am
Ok, give it a try now…
http://www.websmithing.com/gpstracker2/getgooglemap2.php?lat=47.473349&lng=-122.025035&mph=606&dir=0&mi=0&dt=Wed%20Oct%2024%2011:19:17%20UTC%202007&lm=0&h=291&w=240&zm=12&dis=25&pn=theBrit&sid=11137&acc=95&iv=yes&info=morestuff
Nick
September 15, 2010 10:03am
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.
September 17, 2010 2:43pm
hi
can i used this app with a bluetooth gps???
i have to change some code or just like that
September 18, 2010 6:07am
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.
September 18, 2010 8:40am
Hi Mike
I’m not sure what you mean by router ip address. Do you mean the ip of the cell phone?
Please read the response by ggould here:
http://bit.ly/cjCTOK
and this article:
http://bit.ly/9WkAcy
Nick
September 18, 2010 11:17pm
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?
September 22, 2010 4:20am
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..
September 22, 2010 5:18am
Hi. I have some trouble using your app with my nokia 5800 XpressMusic. I get an error:
getlocation:null.
September 22, 2010 7:01am
@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
September 22, 2010 8:01am
@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
September 22, 2010 10:21am
hi nick.
i successfully installed and run your old version gpstracker2.0,
when i change url of GetGoogleMap2.php by http://www.websmithing.com/gpstracker2/getgooglemap2.php
after running for 5-6 times it gives location only once and gives error that ‘throws/nullexceptionpointer’.
where should i change??
@same60: i installed jar file directly but is there any another way so i solve my problem??
September 22, 2010 11:04am
Hi Nick,
I installed your apps on Blabberry 8310 & Nokia E71 & received same error from both,
gps.java.lang.nullpointerexception
what is the reason?
September 22, 2010 11:07am
Kenny
What line did that happen on and in what class? Can you run the phone in the debugger and put breakpoint somewhere?
Nick
September 22, 2010 11:22am
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
September 22, 2010 11:33am
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
September 23, 2010 1:05pm
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?
September 25, 2010 8:51pm
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.
September 26, 2010 1:47am
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
September 30, 2010 5:40am
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
September 30, 2010 8:01pm
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
September 30, 2010 10:56pm
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 – shrikantdhyani@1softsolutions.co.uk
October 1, 2010 7:37pm
And I talk to myself…
October 6, 2010 1:13am
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?
October 15, 2010 1:52am
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.
October 15, 2010 2:37am
I used netbeans to compile the application. Look for the readme.txt file, it will explain the setup.
Nick
October 21, 2010 10:37am
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 ?
October 21, 2010 11:31am
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
November 12, 2010 9:07pm
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
November 20, 2010 5:49pm
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?
November 20, 2010 6:43pm
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
November 21, 2010 5:20am
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
November 21, 2010 7:15am
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
November 21, 2010 3:09pm
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
November 21, 2010 3:24pm
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
November 21, 2010 7:48pm
Hi,
Its in the post:
http://www.bconserv.com/gpstracker/phone
Thanks,
Frank
November 21, 2010 8:53pm
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
November 21, 2010 8:56pm
Bangun
Sorry for the delay. That web server does not seem to be available. I tried this:
http://111.221.42.157/
and nothing came up.
Nick
November 22, 2010 12:47am
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
November 22, 2010 3:06pm
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).
November 22, 2010 3:16pm
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
November 22, 2010 6:03pm
Hi,
So what phones does it run on (seems like the android and iphone would be pretty important platforms to get this to work on)?
Frank
November 23, 2010 12:44am
Well, you have to understand the recent history of cell phones. I wrote that tutorial over 3 years ago pretty much before Android came out. For the first 3 years of iPhone, there were *no* background services, so it was impractical to build a gps tracker for iPhone.
But I agree that those 2 platforms are important. I have built a commercial version for Android here:
http://www.mycelltracker.com/
and I also have built a version for iPhone as well. I plan on open-sourcing both of those soon but right now paid work takes precedence over open source…
n
November 23, 2010 7:02pm
I tried to call up the phone project in Netbeans but there are reference problems (it refers to a /rel folder that is on your desktop).
I am happy to pay you for extended help with this proejct. Let me know if you are interested.
December 29, 2010 6:32am
Hi Nick,
I’ve been playing around with the code in Netbeans and I really like what you have done. I noticed you wrote this code a few years ago and you tested it with the Motorola I355. What do the phones require in order to run the .jad file. I’m playing around with several, and I know its using the JME, but seeing as I have it running on my phone (Nokia 5800), I wondered what was actually necessary for it to install. Also, this is working at the moment with an internal GPS tracker, will it work with a bluetooth GPS device if a phone doesn’t have an internal GPS tracker?
Hope you are well and Merry Christmas!
John
December 30, 2010 5:49am
Hey John
The requirements are that the phone uses Java ME (use to be J2ME) and supports JSR-179:
http://en.wikipedia.org/wiki/Location_API_for_Java_ME
I do think that it will work with an external gps device but I haven’t tried it.
Nick
January 6, 2011 2:41pm
Hi,
I just read about your software. I’m currently working on a gps tracking system based on google maps. The application i’m working on is web based and people are able to record tracks using a tool called trackertag. This tool is only available for symbian right now and I’m looking for something that works on more mobile phone. Is your software able to send gps positions over HTTP? Currently my app is only in dutch right now but if you’re interested please have a look.
February 16, 2011 5:03pm
Hi, thanks for the fantastic app. works a treat
For all of you who are having trouble with the time bug (php, windows etc) here’s a workaround. All it does is insert the current time in the database instead of mangling the one from the device.
comment or delete the following lines from ‘getgooglemap2.php’:
$date = urldecode($_GET['dt']);
and
$date = getDateFromJavaDate($date);
and comment or delete the entire function ‘getDateFromJavaDate’ at the end of the php script.
Then change the procedure ‘prcSaveGPSLocation2′ as follows:
remove this line:
_date VARCHAR(100),
and replace ‘_date’ in the insert statement to ‘CURRENT_TIMESTAMP()’ instead
in my case i dropped the database, edited the sql code and reloaded it with my adjusted procedure.
mail me if you have a query
phamer at vodafone dot ie
all the best
February 20, 2011 7:46pm
#1227 – Access denied; you need the SUPER privilege for this operation
it is giving me this error when i m trying to load procedure prcGetRoutes()
February 20, 2011 7:55pm
Peadar, I don’t necessarily recommend that because then you get the timezone of the server instead of the phone. That can be a problem if they are in different timezones.
aditya, can you give me more details please…
Nick
February 21, 2011 9:58am
hi this is my dbconnect2.php
but it is failed to connect.
February 21, 2011 10:00am
$dbhost = ‘localhost’;
$dbuser = ‘aadi11_gpstrac’;
$dbpass = ‘tracker’;
$dbname = ‘aadi11_gpstracker2′;
$mysqli = mysql_connect($dbhost, $dbuser, $dbpass);
if (!$mysqli)
{
die(‘Could not connect: ‘ . mysql_error());
}
February 22, 2011 7:42pm
hey nick,
if i search for http://www.aaditech.x10.mx/getgooglemap2.php/lat=….n position den i got map of my location.. but on http://www.aaditech.x10.mx/displaymap2.php.. unable to load select routes……acc. to me it is felt to connect database.
what goes wronag?
February 24, 2011 4:50pm
my route page doesnt show anything sir.. http://www.hitomitakahashi.0fees.net/GPSTracker/displaymap2.php
and on my phone says: GPS.getLocation:java.lang.NullPointerException
i create these only in database:
CREATE DEFINER=`root`@`localhost` PROCEDURE `prcSaveGPSLocation2`(
_lat VARCHAR(45),
_lng VARCHAR(45),
_mph VARCHAR(45),
_direction VARCHAR(45),
_distance VARCHAR(45),
_date VARCHAR(100),
_locationMethod VARCHAR(100),
_phoneNumber VARCHAR(20),
_sessionID VARCHAR(50),
_accuracy VARCHAR(20),
_locationIsValid VARCHAR(5),
_extraInfo VARCHAR(255)
THE WORLD needs your app sir and I hope for your success soon.. thank you so much!
March 2, 2011 1:46pm
Hi Nick,
Just a quick question – have any of your mobile links changed? I’m trying to test my phone out on the websmithing server just to see if this will work before I start building the web side of it here, but my phone isn’t showing up on your map at http://www.websmithing.com/gpstracker2/displaymap2.php. I’m a bit stumped… Anything you can do to help would be greatly appreciated! Oh, I’m using a Blackberry Curve
March 2, 2011 3:34pm
Hi Tara
What you need to do is confirm that you’re able to get a 200 response from the websmithing website. I have tested recently and confirmed that it’s working properly. Some cell phone companies *block* user applications from accessing the internet unless you become a partner (at a cost). Even if your web browser and other applications can access the internet is no guarantee that your app will so you need to test. The easiest way is to either set a breakpoint and see what the response is or use the Log function to print out the website response and see what code you get (200, 400 etc)
March 3, 2011 3:34pm
erg. looks like my provider is the problem. So much for an easy solution. Thanks for the help, Nick, and I wish you the best with this project!
March 9, 2011 7:57pm
hey Nick, i checked codes. but routes are enable to load.
March 10, 2011 2:43pm
can u tell about how can i get coordinate information for my sun jdk phone emulator thanks
April 23, 2011 12:34pm
I am looking for a tracking tool that will populate a spreadsheet on a server with gps data from many phones. Is there a way to adapt this program to do this?
Thank,
David
April 23, 2011 12:44pm
Hi David
Yes, a lot of the functionality to do what you need is in this application. Currently it saves to a database. If I were you I would continue to save to a database and have your spreadsheet get location data from the database. That way it would always be up to date. You could also take snapshots of the data if you want to.
Please note that the current application runs on j2me cell phones but not on Android or iPhone. If you need me to modify this application, I’m available for hire. Just let me know.
Nick
April 26, 2011 10:29am
Hi Nick,
Tons of Thanks for your sharing. Is this applicable for all phones like sony, samsung, etc or only for nokia which is java based? Also please send me your mail id, so that i can discuss more things in detail with you.
Regards,
Dinesh.
May 5, 2011 4:57am
Hi Nick,
I emailed you a couple of months ago and haven’t had chance to do much lately, however I was looking at it again and also looking at the license costs from Google. Have you had to pay the ridiculous fee’s to Google to use the Android app you wrote in order to use the Google maps? I was just reading through the T+C’s and I couldn’t believe how much it was. Send me a quick email if you like, I’d be interested to know how you got around it if you did
)
May 5, 2011 9:28am
Hey John
That’s a very good question and one I want to address publicly. The android app and mycelltracker.com website is free and has always been free and available to everyone. Therefor I am not breaking Google’s terms of service regarding Google maps.
Nick
May 8, 2011 11:41am
Can’t get the program to work. What are you supposed to open it with?
June 11, 2011 5:48pm
I find it interesting its application, my problem is I have not been able to import GPSTracker2.sql, my error tables: CREATE DEFINER = `root` @ `localhost` PROCEDURE `prcGetRouteForMap` (I could not interpret the change suggested by ReadMe. txt
” If You are using phpMyAdmin, you May Need to change the import file. Look at the stored procedures in the GPSTracker.sql file, this is the first line of one theme:
CREATE DEFINER = `root` @ `localhost` PROCEDURE `prcDeleteRoute` (
If phpMyAdmin complains about Trying to intall the 4 Routines, Then remove the DEFINER of all 4 Routines like this:
CREATE PROCEDURE `prcDeleteRoute` (
Should They install then. The data.sql file contains sample data.”
I tried to import but does not work in any way
error: http://uchlsistemas.com/gps/GPSTrackerPhp/Website/GPSTracker/getroutes.php
$mysqli->multi_query: PROCEDURE yjzc0443_gps.prcGetRoutes does not exist
June 22, 2011 6:30am
hi tryin ua app to use it with my project and stl get the 404 response code even after reading all your posts please help
June 24, 2011 1:56pm
hi the displaymap2 works when i use your databases but doesnt work when i create my own even after changing values in dbconnect2.php
please help
September 3, 2011 8:04am
Nick,
The dates on web page is always different than current time, do you know why?
Where and what should i change?
September 3, 2011 8:14am
That can happen for a few reasons. The first may be this. The database/webserver could be in a different part of the world and therefor a different timezone. That happens with me. My server is Texas and I’m in Washington. Check the times of the phones also. Need to start by looking at the records in the database, at the times you are getting.
n
September 3, 2011 3:23pm
Nick,
Thank, I will look into it. today another problem.
black berry says” java.lang.nullpointexception networker.getUrl:
jva.lang,illigalargunentexception
Map could not be downloaded.
???
Data available in database, http://www.vedicastrologer.ca/displaymap2.php doesnot show anything
October 2, 2011 3:26pm
Hi we are putting together a game, and I would like to know if using your app we could track 20 phones at the same time, the players will authorize to be track the day of the game, we will track them in a your map, it will be on a small town 5miles square area.
Please let me know if we can contact you directly.
Best regards
Leandro Danipo
October 8, 2011 11:18am
Hi we are putting together a game, and I would like to know if using your app we could track 20 phones at the same time, the players will authorize to be track the day of the game, we will track them in a your map, it will be on a small town 5miles square area.
Please let me know if we can contact you directly.
Best regards
Leandro Danipo
October 13, 2011 5:49pm
Hi Leandro
This project is *very* basic. Just a bare-bones how-to on how a phone can communicate with a website. It could be used as the basis of a game but it would take a lot of reworking. I wrote the app several years ago and it doesn’t use any modern frameworks like jquery which it should use. So, it would require a lot of work, but the idea is right.
Nick
October 21, 2011 6:32am
Hi Nick,
Excuse my ignorance!
Does this software allow me to track my own mobile phone and watch / host it on my own desktop PC live? If so the phone data sends a data stream via GPRS to a specific port on my PC where is that in the program? I guess I’ve got it all wrong and it won’t do what I want
Regards
Mike
October 21, 2011 8:00am
Hey Mike. The cell phone will send gps data to a website on the internet. If your desktop PC has a static i.p. address then yes, you could view your own location live on your PC.
Nick
October 21, 2011 10:14am
Hi Nick
Thanks for the response I’ll take a look at your php files tonight and see if I can find the port settings etc.
Regards
Mike
October 24, 2011 5:33am
HI Nick,
I can’t see where the web software listens to a port to collect the data? Is there a file missing?
If anyone has it working with a TK102 please email me mlewis@ntlworld.com
Regards
Mark
October 24, 2011 3:10pm
Hi Nick, I’m a total newbie to this; but here’s my problem; my mother has dementure and has habit of going of on walk about and getting lost and my father is 81 so it’s hard work for him to go chasing allover to find her and unfortunately I’m not close by to help out; so here is my question. Would my dad and I be able to utilise your software/system to track my mother so that when she goes off he can find her quickly and keep her safe?
Kind regards
Gary
October 24, 2011 3:43pm
Hi Nick, I’m sorry Iforgot to say my parents are based in the UK.
Thanks
Kind regards
Gary
November 10, 2011 11:27am
Hi Nick…
First of all Tons of Thanks for your sharing
I’m a computer science student where i’m planning to do my final year project in title of “Live Railway Tracking System” and so far had done all the webserver config with wamp and hosting with free dyndns. Also the website working in public smoothly.
i have installed the j2me (jar) on ma phone and tried to pump the coordinates to phpmyadmin database.
problem is i’m receiving an error as
Getting map once a minute…
GPS.getLocation: java.lang.
NullPointerException
above error message is continuing and my phone is nokia e72. even though i test with your webserver (www.smithing….)same issue..
need a fix for the above issue
please help
kind regards
Zuhry Fayesz
December 10, 2011 3:36am
Hi
I have HTC HD2. Do you have any miglet that runs only in phone using gps and data service with pocket google map, without any other server.
ı want to track only when I will use the miglet to see where the person is. I dont want to use track of record, just the time start the miglet.
I thank you for your help.
Regards,
NTMS
May 24, 2012 3:03am
Hi Nick, first of all thank you for the great application, but I really confused my mind. I download GPSTrackerPhp and we have 3 folders in .zip file which are Website, Database, and Phone. I have ftp server, Wampserver, and Nokia5800 Xpreess Music, also i did every step which explained in the read me file, and got my google api key. But I don’t know what I’m doing know. Can you explain me step by step what should I do to run this program.
Thank you for kindness..
June 27, 2012 12:10am
Hi nick
just a noob question here.
i have here on my pc vb.net 2010 but it seems to be not reading your .net files should i use visual studio 2005 or i just need a third party program? i can’t compile your whole program pls help
June 27, 2012 12:32am
anybody home??pls reply
July 15, 2012 2:40pm
I have a cell phone Samsung s8300
I run the file it works for me cell phone but he says all I need getgooglemap2
August 23, 2012 9:02pm
hi Hardan,
which website did you test your phone?
or what is the url in the app settings?
December 6, 2012 3:19pm
Hi Nick, I’ve already lift his project and compile from Netbeans IDE 7.2.1, and under the application to the phone and intala well, I install it on a model BalckBerry 8900. after setting the user frequently than 1 minute GPS.Location gives me this error: java.lang.NullPointerException. How I can fix this and it works for BB phones. Thank you.
January 17, 2013 12:38pm
Wow i havent been to this site in Awhile!
just dug this program out of the bin and cant get it to load routes.
If i recall its a problem with sql procedures
January 30, 2013 7:14am
Hi Lee, I also was messing with this recently with an old nokia e51…old age is settling in
anyway, i had to rework the procedures on the new mysql db (which was loaded as a routine on my old db) to work properly.
mail me if you have any difficulties.
peter hamer 1 at g mail dot com (minus the obvious spaces)
February 24, 2013 11:13pm
Peadar i did resolve the issue it was two part, Needed new API key, and like you said the procedures needed some adjustments
my E-mail is tucsondirect at gmail com
If you are interested in a newer project, Check out Traccar
Leave a comment