Archive for February, 2012

55 million opportunities to make new iPad Apps

Apple CEO Tim Cook on the 55 million iPads sold to date:

This 55 is something no one would have guessed. Including us. To put it in context, it took us 22 years to sell 55 million Macs. It took us about 5 years to sell 22 million iPods, and it took us about 3 years to sell that many iPhones. And so, this thing is, as you said, it’s on a trajectory that’s off the charts.

(source : asymco)

In the Desktop Software Market, for years there have been companies (like Panic) which thrived by creating Mac only software.

If we take the quote by the Apple CEO into presepective, then it becomes plain how big an opportunity this means for software companies who have great ideas for making iPad apps.

Despite of many apprehensions, iPad has proved that it is a device of promise and it has become something that many of us use daily. Each day people open their laptops less and less because iPad is doing more. Still there are many categories of desktop apps, where iPad equivalents are not present or are not as great.

This presents a great opportunity for enterprising and imaginative souls who can come up with innovative ideas for iPad Apps.

What do you think?

HTML5 Geolocation Tutorial : HTML5 Geolocation Example

With HTML5 you can access the geolocation of the user.

Browser wise Geolocation Support

  • Internet Explorer : 9.0 and above
  • Chrome : 5.0 and above
  • Firefox : 3.5 and above
  • Safari : 5.0 and above
  • Opera : 10.6 and above
  • iPhone : 3.0 and above
  • Android : 2.0 and above
  • Blackberry : 6.0 and above
  • Windows Phone7 : Mango and above[*]

Detecting Geolocation Support

You can use the Modernizr JavaScript library to check if the user’s browser supports geolocation.

if(Modernizr.geolocation) {
	// HTML5 geolocation supported
} else {
	// HTML5 geolocation not supported
}

Using Geolocation with HTML 5

Here is a small sample you can use to get started with geolocation in HTML5.

If you are testing this locally on your machine, then you will need to use a local web server to run this sample.

<!DOCTYPE html>
<html>
<head>
	<title>HTML 5 Geolocation Sample Page</title>
	<script src="modernizr-2.5.2.js"></script>
	<script src="jquery-1.6.1.min.js"></script>
	<script type="text/javascript">
		var jQ = jQuery.noConflict();

		function useGeolocation(position) {
			var latitude = position.coords.latitude;
			var longitude = position.coords.longitude;

			jQ("#latitude").html(latitude);
			jQ("#longitude").html(longitude);
		}

		function onGeolocationError(error) {
			alert("Geolocation error - code: "
                        + error.code + " message : " + error.message);
		}

		jQ(document).ready(function(){
			if(Modernizr.geolocation) {
				jQ("#geolocation").html("is supported.");

				navigator.geolocation.getCurrentPosition(
  useGeolocation, onGeolocationError);

			} else {
				jQ("#geolocation").html("is not supported.");
			}

		});
	</script>
</head>
<body>

<b>Geolocation</b> : <span id="geolocation"></span> <br />
<b>Latitude</b> : <span id="latitude"></span> <br />
<b>Longitude</b> : <span id="longitude"></span> <br />

</body>
</html>

Screen Shots

Success: User allowed the geolocation access
HTML5 Geolocation Success Example

Error: User denied the geolocation access
HTML5 Geolocation Error Example

Example Source Code

You can download the HTML5 Gelolocation Example source code from here.