<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Creating a Blackberry GPS Tracker</title>
	<atom:link href="http://www.toniwestbrook.com/archives/126/feed" rel="self" type="application/rss+xml" />
	<link>http://www.toniwestbrook.com/archives/126</link>
	<description>Sharing Software Development Knowledge With You</description>
	<lastBuildDate>Thu, 09 Sep 2010 04:44:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Toni</title>
		<link>http://www.toniwestbrook.com/archives/126#comment-84996</link>
		<dc:creator>Toni</dc:creator>
		<pubDate>Thu, 12 Aug 2010 03:57:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.toniwestbrook.com/archives/126#comment-84996</guid>
		<description>Hi Fernando, thanks for the kudos.  Not sure about the battery life issue without knowing what&#039;s going on in your code.  How often are you retrieving coordinates and how often are you sending to the server?  Keep in mind that both those actions drain the battery, so the more you&#039;re doing either, the faster your battery is going to go.  Again, I&#039;d probably have to see your code to know why your socket isn&#039;t staying open - but keeping it open would definitely be a bigger drain on your battery, since you&#039;re having to do some TCP keep alive or the like.  Depending on how often you need the page itself updated, you could cache a batch of results on the device, and then upload a set of readings at a time less frequently.</description>
		<content:encoded><![CDATA[<p>Hi Fernando, thanks for the kudos.  Not sure about the battery life issue without knowing what&#8217;s going on in your code.  How often are you retrieving coordinates and how often are you sending to the server?  Keep in mind that both those actions drain the battery, so the more you&#8217;re doing either, the faster your battery is going to go.  Again, I&#8217;d probably have to see your code to know why your socket isn&#8217;t staying open &#8211; but keeping it open would definitely be a bigger drain on your battery, since you&#8217;re having to do some TCP keep alive or the like.  Depending on how often you need the page itself updated, you could cache a batch of results on the device, and then upload a set of readings at a time less frequently.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fernando</title>
		<link>http://www.toniwestbrook.com/archives/126#comment-84899</link>
		<dc:creator>Fernando</dc:creator>
		<pubDate>Tue, 10 Aug 2010 18:05:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.toniwestbrook.com/archives/126#comment-84899</guid>
		<description>Hi Toni, great example, i have someting similar based on the GPS demo from Blackberry&#039;s site, i use TCP Connection to send the data directly to my server and that works fine, but i have some issues that maybe you can help me, first the battery life its very short when the app is running, its running as a service so doesnt have interface. And second we want to request the position of the BB by sending a command to the device, but the socket doesnt remains open, after sending data the socket comes close and we dont know how to keep the socket open.</description>
		<content:encoded><![CDATA[<p>Hi Toni, great example, i have someting similar based on the GPS demo from Blackberry&#8217;s site, i use TCP Connection to send the data directly to my server and that works fine, but i have some issues that maybe you can help me, first the battery life its very short when the app is running, its running as a service so doesnt have interface. And second we want to request the position of the BB by sending a command to the device, but the socket doesnt remains open, after sending data the socket comes close and we dont know how to keep the socket open.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toni</title>
		<link>http://www.toniwestbrook.com/archives/126#comment-83960</link>
		<dc:creator>Toni</dc:creator>
		<pubDate>Tue, 13 Jul 2010 01:38:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.toniwestbrook.com/archives/126#comment-83960</guid>
		<description>Hi Jane -

I apologize about not seeing this comment sooner, I just upgraded to a new version of Wordpress, and suddenly I saw a bunch of comments that I didn&#039;t before, there was obviously some issue with the previous installation.  You&#039;ve probably long since figured it out, but just in case -

If you check out the article on &lt;a href=&quot;http://www.toniwestbrook.com/archives/69&quot; rel=&quot;nofollow&quot;&gt;Creating a Blackberry Game&lt;/a&gt;, it gives some in depth instructions on how to actually compile the code and load it onto your Blackberry (or run it in a simulator). 

Also, thanks for the kind words - glad it helped!</description>
		<content:encoded><![CDATA[<p>Hi Jane -</p>
<p>I apologize about not seeing this comment sooner, I just upgraded to a new version of WordPress, and suddenly I saw a bunch of comments that I didn&#8217;t before, there was obviously some issue with the previous installation.  You&#8217;ve probably long since figured it out, but just in case -</p>
<p>If you check out the article on <a href="http://www.toniwestbrook.com/archives/69" rel="nofollow">Creating a Blackberry Game</a>, it gives some in depth instructions on how to actually compile the code and load it onto your Blackberry (or run it in a simulator). </p>
<p>Also, thanks for the kind words &#8211; glad it helped!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jane F.</title>
		<link>http://www.toniwestbrook.com/archives/126#comment-80056</link>
		<dc:creator>Jane F.</dc:creator>
		<pubDate>Mon, 19 Apr 2010 21:39:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.toniwestbrook.com/archives/126#comment-80056</guid>
		<description>Hi Toni,

this is AWESOME and inspiring! Just got my curve yesterday. As i&#039;m more from a scripting background, do you mind explaining in a couple of steps how i could get a jar from your above code? Thx!

jane</description>
		<content:encoded><![CDATA[<p>Hi Toni,</p>
<p>this is AWESOME and inspiring! Just got my curve yesterday. As i&#8217;m more from a scripting background, do you mind explaining in a couple of steps how i could get a jar from your above code? Thx!</p>
<p>jane</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wagas Sonkar</title>
		<link>http://www.toniwestbrook.com/archives/126#comment-76957</link>
		<dc:creator>Wagas Sonkar</dc:creator>
		<pubDate>Mon, 22 Feb 2010 10:55:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.toniwestbrook.com/archives/126#comment-76957</guid>
		<description>Hello Toni

Thanks for your kind consideration. Yeah its giving me &quot;No Source Code Found&quot; only.
No other error till time. Could you please guide me with it.

Thanks
Wagas</description>
		<content:encoded><![CDATA[<p>Hello Toni</p>
<p>Thanks for your kind consideration. Yeah its giving me &#8220;No Source Code Found&#8221; only.<br />
No other error till time. Could you please guide me with it.</p>
<p>Thanks<br />
Wagas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toni</title>
		<link>http://www.toniwestbrook.com/archives/126#comment-76883</link>
		<dc:creator>Toni</dc:creator>
		<pubDate>Sun, 21 Feb 2010 03:22:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.toniwestbrook.com/archives/126#comment-76883</guid>
		<description>Hey Wagas - what is the exact error?  Does it say &quot;No Source Code Found&quot;?  Does it say anything else?  I haven&#039;t run into that error before, let me know if there&#039;s any other info.</description>
		<content:encoded><![CDATA[<p>Hey Wagas &#8211; what is the exact error?  Does it say &#8220;No Source Code Found&#8221;?  Does it say anything else?  I haven&#8217;t run into that error before, let me know if there&#8217;s any other info.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wagas Sonkar</title>
		<link>http://www.toniwestbrook.com/archives/126#comment-75858</link>
		<dc:creator>Wagas Sonkar</dc:creator>
		<pubDate>Sat, 06 Feb 2010 16:10:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.toniwestbrook.com/archives/126#comment-75858</guid>
		<description>Hello Toni

Sorry I forgot to mention that I am using BB 8900

Thanks
Wagas</description>
		<content:encoded><![CDATA[<p>Hello Toni</p>
<p>Sorry I forgot to mention that I am using BB 8900</p>
<p>Thanks<br />
Wagas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wagas Sonkar</title>
		<link>http://www.toniwestbrook.com/archives/126#comment-75857</link>
		<dc:creator>Wagas Sonkar</dc:creator>
		<pubDate>Sat, 06 Feb 2010 16:04:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.toniwestbrook.com/archives/126#comment-75857</guid>
		<description>Hello Toni

I have exactly the same requirement what your application mentioned here is delivering but when I am trying run it with a simulator its giving error as no source code found. I looked into the trace stack and found it is failing at Thread.Timer main () function (exact name may be different but its the timer).
I tried to put the .cod file in my blackberry also but there also its showing &quot;Starting transmission...&quot; only event I did put some more prints in the function startScreen(), but it is not going upto them. I did conclude that its the only timer where I am unable to carry on. Please guide me as I am all new for this and reffered so many documents but nowhere find anything like this till now as it seems all ok.

Thanks
Wagas</description>
		<content:encoded><![CDATA[<p>Hello Toni</p>
<p>I have exactly the same requirement what your application mentioned here is delivering but when I am trying run it with a simulator its giving error as no source code found. I looked into the trace stack and found it is failing at Thread.Timer main () function (exact name may be different but its the timer).<br />
I tried to put the .cod file in my blackberry also but there also its showing &#8220;Starting transmission&#8230;&#8221; only event I did put some more prints in the function startScreen(), but it is not going upto them. I did conclude that its the only timer where I am unable to carry on. Please guide me as I am all new for this and reffered so many documents but nowhere find anything like this till now as it seems all ok.</p>
<p>Thanks<br />
Wagas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.toniwestbrook.com/archives/126#comment-57309</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Wed, 12 Aug 2009 17:20:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.toniwestbrook.com/archives/126#comment-57309</guid>
		<description>No, it deleted it... I&#039;ll take out the opening and closing tags and try that....

//Connect to the DB
$link = mysql_connect(&#039;MYSQL.MYDOMAIN.COM&#039;, &#039;MYUSERNAME&#039;, &#039;MYPASSWORD&#039;); 
if (!$link) { 
    die(&#039;Could not connect: &#039; . mysql_error()); 
} 
echo &#039;Connected successfully&#039;; 
mysql_select_db(MYDBNAME); 

//Get the variables from the URL path
$lat = $_GET[&#039;lat&#039;];
$long = $_GET[&#039;long&#039;];
$alt = $_GET[&#039;alt&#039;];
$name = $_GET[&#039;name&#039;];

//This is for debugging purposes
//echo $lat . &quot;\n&quot;;
//echo $long . &quot;\n&quot;;
//echo $alt . &quot;\n&quot;;
//echo $name . &quot;\n&quot;;

// Insert them into the DB with an SQL statement
$sql = &#039;INSERT INTO `tblMYTABLENAME` (`date`, `lat`, `long`, `alt`, `name`) VALUES (CURRENT_TIMESTAMP,&#039; . $lat . &#039;,&#039; .  $long . &#039;,&#039; . $alt . &#039;,\&#039;&#039; . $name . &#039;\&#039;);&#039;;

//Your URL will look something like this
//http://www.MYDOMAIN.com/connecttodb.php?lat=20.1234&amp;long=30.4321&amp;alt=50&amp;name=John

//Also for debugging to see your SQL statement
//echo $sql;

if (!mysql_query($sql,$link))
  {
  die(&#039;Error: &#039; . mysql_error());
  }
echo &quot;1 record added&quot;;

mysql_close($link)</description>
		<content:encoded><![CDATA[<p>No, it deleted it&#8230; I&#8217;ll take out the opening and closing tags and try that&#8230;.</p>
<p>//Connect to the DB<br />
$link = mysql_connect(&#8216;MYSQL.MYDOMAIN.COM&#8217;, &#8216;MYUSERNAME&#8217;, &#8216;MYPASSWORD&#8217;);<br />
if (!$link) {<br />
    die(&#8216;Could not connect: &#8216; . mysql_error());<br />
}<br />
echo &#8216;Connected successfully&#8217;;<br />
mysql_select_db(MYDBNAME); </p>
<p>//Get the variables from the URL path<br />
$lat = $_GET['lat'];<br />
$long = $_GET['long'];<br />
$alt = $_GET['alt'];<br />
$name = $_GET['name'];</p>
<p>//This is for debugging purposes<br />
//echo $lat . &#8220;\n&#8221;;<br />
//echo $long . &#8220;\n&#8221;;<br />
//echo $alt . &#8220;\n&#8221;;<br />
//echo $name . &#8220;\n&#8221;;</p>
<p>// Insert them into the DB with an SQL statement<br />
$sql = &#8216;INSERT INTO `tblMYTABLENAME` (`date`, `lat`, `long`, `alt`, `name`) VALUES (CURRENT_TIMESTAMP,&#8217; . $lat . &#8216;,&#8217; .  $long . &#8216;,&#8217; . $alt . &#8216;,\&#8221; . $name . &#8216;\&#8217;);&#8217;;</p>
<p>//Your URL will look something like this<br />
//http://www.MYDOMAIN.com/connecttodb.php?lat=20.1234&amp;long=30.4321&amp;alt=50&amp;name=John</p>
<p>//Also for debugging to see your SQL statement<br />
//echo $sql;</p>
<p>if (!mysql_query($sql,$link))<br />
  {<br />
  die(&#8216;Error: &#8216; . mysql_error());<br />
  }<br />
echo &#8220;1 record added&#8221;;</p>
<p>mysql_close($link)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Thomas</title>
		<link>http://www.toniwestbrook.com/archives/126#comment-57282</link>
		<dc:creator>Dave Thomas</dc:creator>
		<pubDate>Wed, 12 Aug 2009 13:18:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.toniwestbrook.com/archives/126#comment-57282</guid>
		<description>Jeremy, thanks so much for the URL... did you forget to post the PHP code?</description>
		<content:encoded><![CDATA[<p>Jeremy, thanks so much for the URL&#8230; did you forget to post the PHP code?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
