Dev 101: Getting to know PointAbout

« Return to previous page.

line

Overview: PointAbout’s job is…

PointAbout’s mission is 2 fold.

First, we make it very easy for anyone with HTML and Java Script experience to build and publish a mobile application.   Without PointAbout a developer would need to learn Objective-C and own a Mac.

Second, we make the application you build “cross – platform” for the iPhone, iPod Touch & Android phone platforms (more soon).

line

Basic Architecture

PointAbout has 2 components–The “Springboard” and the “AppMakr”.

The “Springboard” exposes the native features of the phone (GPS, Camera and Accelerometers) via JavaScript.   You can then utilize these APIs in your HTML files.

The “AppMakr” then takes the hosted URL that utilizes the PointAbout JavaScript APIs plus some splash-screen and icon artwork and builds a native application.

architecture

line

The PointAbout Process

  • You build and host a URL that makes PointAbout Java Script calls to get Location/Camera/Accelerometers
  • You send the URL and supporting media to PointAbout and we use AppMakr to build the native application
    • We will send you a Zip file containing the application that you can load on your phones
    • We will submit the Zip file to the App Store

line

PointAbout JavaScript API’s

Initialize PointAbout Springboard

  • Device.init() – This function starts up the PointAbout springboard

Get the Location (longitude and latitude)

  • Device.Location.init() – This function starts up the phones GPS

**See the example in the developer blog for more details

Using the Camera

  • Device.Image.getFromPhotoLibrary()
  • Device.Image.getFromSavedPhotosAlbum()-To specifically call the photoalbum feature on the phone from javascript

**See the example in the developer blog for more details

Using the Accelerometers

  • accelX, accelY, accelZ

PopOut

  • Device.openWebView(url)- To open a web view containing back, forward, refresh and close option

line

A Simple Example (using PointAbout to get location)–Step 1: HTML & JavaScript

**This example references Python ,  DJango, Google AppEngine and the Sunlight Foundation APIs –these are not required to use PointAbout.

[sourcecode language="jscript"]


[/sourcecode]

There are 5 basic steps:

  • First, as you see on line 1, we add a pointer to the springboards Java Script APIs.
  • Second, on line 5, we create an initialization function to open up a connection to the Springboard
  • Third, on line 16, we create an atag href for a page to Pass the latitude and longitude

[sourcecode language="html"]

Filed Under: Development Blog