Skip to main content

How PhoneGap is useful to create cross-platform mobile Applications (1 of 2)

How PhoneGap is useful to create cross-platform mobile Applications
#How PhoneGap is useful to create cross-platform mobile Applications:
There are many smartphone platforms on the market: Android, iPhone, BlackBerry, Nokia, the Windows 7 Phone, and WebOS. Newer platforms are on the rise as well, such as Samsung's Bada and Meego.

The sheer number of development platforms for mobile applications may seem overwhelming. This is the first of many points you must keep in mind when dealing with mobile application development.

In the year 2000, we saw a similar situation in the desktop world. We had Microsoft Windows, Apple's Mac, and various versions of Linux and UNIX. At that time, it was difficult to build products that would run on all these platforms. The resulting fragmentation was often solved via in-house solutions by building frameworks in C++, with Operating System (OS)-specific modules abstracted. Fortunately, Sun's Java came to the rescue and provided us with a common platform on which to build. With Java's build-once-and-run-anywhere strategy, building desktop products had become a breeze.

Between 2004 and 2008, the developer community saw a different kind of fragmentation; this time, it took place in the browser world. It was a fragmentation involving the very popular Internet Explorer 6 vs. Firefox and Safari—then, Chrome and other browsers came out of the woodwork, causing further fragmentation.

The nature of this fragmentation, however, was different and a little more tame: it was mainly due to browsers not following the specifications outlined by the World Wide Web Consortium (W3C). Often, this fragmentation was solved by writing either "If Browser is IE, then do this else do that" or "If Feature is Present, then do this else do that."

Many JavaScript libraries came to the rescue and helped write cross-browser web applications. Things have improved to such an extent that all of the browsers are working hard to be more and more compliant with W3C specs. The browser, as a platform, is now a strong contender.

Mobile OS fragmentation is severe because there are no specifications or standards in this development area. In 2007, Apple and Google launched their mobile platforms. In 2008, both companies launched mobile app stores to allow smartphone users to download mobile applications. The era of mobile applications had begun; since then, there has been no looking back. The number of smartphone users has grown exponentially.

Companies started focusing on delivering services and content on the new smartphone platform. Businesses realized they needed to shift their focus to smartphone users. Not only was there an increase in the number of users, but the frequency of smartphone usage increased as well.
Imagine your developers working around to the clock to release the same product on the iPhone, Android, BlackBerry, WebOS, and Symbia—and now, let's add Samsung Bada to that list! You can see the challenge here.

The OS platforms, starting with their development environments, are so fragmented. For the iPhone, you will need Mac machines, and for BlackBerry, you will need Windows.

Mobiles applications are two types:
  1. Standalone mobile applications
  2. Mobile applications (based on web services)
Standalone mobile applications are applications such as alarms, phone dialers, and offline games. Web service-backed mobile applications are applications like e-mails, calendars, Twitter clients, online games, and applications that interact with web services.

How PhoneGap is developed for mobile applications:
  1. Many companies that want to develop mobile applications for multiple platforms either have their own web services or rely on other web services. While PhoneGap can work for standalone mobile applications, it is very well-suited for mobile applications that make use of web services. 
  2. The reason for this is that PhoneGap applications are primarily web applications that are augmented with device features. Think about a Flickr web application that has access to a device's camera or Google Maps application, which, in turn, has access to a GPS. Another example is Foursquare, which has access to your GPS, as well as your phone's address book.
  3. This more or less means that a majority of PhoneGap-based applications will access web services using JavaScript. This makes it important for developers using PhoneGap to have a handle on using web services.


Popular posts from this blog

The best 5 differences of AWS EMR and Hadoop

With Amazon Elastic MapReduce (Amazon EMR) you can analyze and process vast amounts of data. It does this by distributing the computational work across a cluster of virtual servers running in the Amazon cloud. The cluster is managed using an open-source framework called Hadoop.

Amazon EMR has made enhancements to Hadoop and other open-source applications to work seamlessly with AWS. For example, Hadoop clusters running on Amazon EMR use EC2 instances as virtual Linux servers for the master and slave nodes, Amazon S3 for bulk storage of input and output data, and CloudWatch to monitor cluster performance and raise alarms.

You can also move data into and out of DynamoDB using Amazon EMR and Hive. All of this is orchestrated by Amazon EMR control software that launches and manages the Hadoop cluster. This process is called an Amazon EMR cluster.

What does Hadoop do...

Hadoop uses a distributed processing architecture called MapReduce in which a task is mapped to a set of servers for proce…

Top 20 ultimate ETL Questions really good for interviews

How to print/display the first line of a file?  there are many ways to do this. However the easiest way to display the first line of a file is using the [head] command.  $> head -1 file. Txt no prize in guessing that if you specify [head -2] then it would print first 2 records of the file.  another way can be by using [sed] command. [sed] is a very powerful text editor which can be used for various text manipulation purposes like this.  $> sed '2,$ d' file. Txt how does the above command work?  The 'd' parameter basically tells [sed] to delete all the records from display from line 2 to last line of the file (last line is represented by $ symbol). Of course it does not actually delete those lines from the file, it just does not display those lines in standard output screen. So you only see the remaining line which is the 1st line.  how to print/display the last line of a file?  the easiest way is to use the [tail] command.  $> tail -1 file. Txt if you want to do it using…

5 Things About AWS EC2 You Need to Focus!

Amazon Elastic Compute Cloud (Amazon EC2) - is a web service that provides resizable compute capacity in the cloud. It is designed to make web-scale cloud computing easier for developers.
Amazon EC2’s simple web service interface allows you to obtain and configure capacity with minimal friction.

The basic functions of EC2... 
It provides you with complete control of your computing resources and lets you run on Amazon’s proven computing environment.Amazon EC2 reduces the time required to obtain and boot new server instances to minutes, allowing you to quickly scale capacity, both up and down, as your computing requirements change.Amazon EC2 changes the economics of computing by allowing you to pay only for capacity that you actually use. Amazon EC2 provides developers the tools to build failure resilient applications and isolate themselves from common failure scenarios. 
Key Points for Interviews:
EC2 is the basic fundamental block around which the AWS are structured.EC2 provides remote ope…