Tag Archives: location

Android App: GPS Status & Toolbox CodeUnit 24 OCT 2011

One thing that annoys me about the Android phone is that there isn’t a built in way to check the status of your GPS unit on the device – in other words you can never be sure if the damn thing is working or not, has a fix, or is just trying to direct you to the nearest coffee shop.

Thankfully developer EclipSim has taken the time to come up with a brilliant Android App that is yours for free, is stunningly simple in execution, but literally tells you everything you ever wanted to know about all the sensors packed into that remarkable little device you currently hold in your hand.

GPS Status & Toolbox (more commonly referred to as just GPS Status) basically grabs all the readings from your phone’s sensors and then displays them in a compass and data table form, constantly refreshing so that you can see exactly what your phone is getting up to. Amongst the data it reveals is GPS Position, Signal Strength of Satellites, Accuracy Level, Speed, Acceleration, and Bearing.

This information is then packed into a compass with both magnetic and true north, a leveling tool, and of course the data list. The display is quite configurable, giving you different color options that are suited to different light conditions, and a slew of unit formatting options and settings which should cover every possible user imaginable.

An absolutely essential tool in my opinion, simple, effective, well thought out, and more importantly, one that does everything you could possibly need to feel secure that your device is functioning like you need it to.

And did I mention it is free? (Ad-supported, but nothing a click of the donation button can’t solve.)

Search for GPS Status in the market place to download and install!

PHP: Page Redirecting with Header… and Die() CodeUnit 25 OCT 2010

php elephant iconI make use of PHP’s handy header function to handle simple page redirects for me, perhaps a bit of a cheap way of doing it, but one that is remarkable effective. Sure, you need to change the way you code a little and perhaps introduce some ob_start and ob_end_flush calls if necessary, but on the whole a good old header(‘Location: newpage.htm’) call works pretty damn well.

But here’s a handy note, something to keep in mind when redirecting to a new page using the header function.

Sometimes, somehow, somewhere, a browser script might/will/does continue silently running even after you called your header relocate function, introducing some potentially hazardous side affects because some or other critical session variables or something or other have been set to something they simply weren’t meant to be.

Often this is noticeable with login processing backend scripts, where logins will mysteriously work or fail depending on your set up, occurring purely because session variables have been set when you didn’t think they would be because according to you, the page had already redirected.

So a simple solution to this?

Well the reliable little die() statement works pretty damn well in this case. So the resulting code?

header('Location: newpage.htm');

A simple tip, but one worth remembering.

Related Link: http://php.net/manual/en/function.header.php