2013年6月29日 星期六

[PhoneGap] Writing a mobile app with PhoneGap

Recently, I'm trying to write a mobile app with PhoneGap. To my surprise, it is not that difficult if you are familiar with HTML, jQuery and CSS. Most functions used in a tool app are already provided in html.

For example, a hotel search app may need those methods:
Call the hotel:
<a href="tel:+44123123123"> CALL ME </a>

Write an email:
<a href="mailto:123@123123123"> EMAIL ME </a>

Send a text message:
<a href="sms:123@123123123"> TEXT ME </a>

Find the location on map (I'm writing an Android app, it is working to call the native google map app. Not pretty sure if it works on iOS)
<a href="geo:54,42"> FIND ME </a>

Get the direction
<a href="http://maps.google.com/maps?saddr=startPos&daddr=endPos&ll=StartPos" > GET THE DIRECTION </a>

When writing an application becomes easy, I think what really important is why you want to write an app and what you want to present to the world.