Cross-platform SDK and HTML5 tools for mobile app development
X
 

Location, GPS, Maps

Overviews

  • The Wormhole JavaScript Library

    This overview of the MoSync Wormhole JavaScript Library gives you access from an HTML5 application to native user interface components as well as cameras, compasses, files storage, push notifications, sensors, and a whole lot more.

IDE User Guides

  • Setting Application Permissions

    Some mobile devices (particularly Symbian and JavaME devices) require that your application has permission to access functions and services like Bluetooth, camera, contacts, Internet access, OpenGL, push notifications, sensors, and file storage. The MoSync SDK makes it easy to grant access to such services and functions.

Coding Guides

  • Determining Location

    In this tutorial we take a look at how to detect a device's current geographical location and how to use location data in your application. We also describe some basic strategies for updating location data on a regular basis.

  • Sensor Control in C/C++

    Modern smartphones have a variety of in-built sensors to detect, for example, movement, orientation, rotation, proximity, and magnetic fields. This tutorial explains how to start and stop sensors, and to receive sensor data in your application through the MoSync Sensor API.

  • Using the MAP Library

    The Mosync MAP library is a standard library that provides a MapWidget for displaying geographical maps, sometimes called slippy or panning maps, consisting of tiles provided by a map source. This guide introduces the basics of the MAP library and shows you how to create map applications from scratch.

  • Using the NativeUI Map Widget

    The MoSync Widget C API's Map widget makes it possible for you to add a map to your application and perform different operations on it. This widget is only available for Windows Phone 7 and iOS.
    This tutorial presents all the functionality of the map widget and provides a full application example.

Example Apps

  • HelloMap

    HelloMap is a simple application that displays a slippy (i.e. panning) map.

  • Location

    This application tests the on-board GPS functionality of the phone, via the MoSync Location API.

  • MapDemo

    The MapDemo application displays slippy maps and makes use of the MAUI library to provide a simple menu system. The menu system enables the user to switch between map sources and is easy to extend with your own code.

  • NativeUIMap

    The NativeUIMap example app is a C/C++ application that demonstrates the basic functionality of the MoSync NativeUI's map widget.

  • SensorTest

    SensorTest is a simple application that demonstrates how to use the functions of the MoSync Sensor C API to control a device's sensors, and to receive current measurements.

  • WebViewGeoLocation

    The WebViewGeoLocation application displays your current location, as returned by EVENT_TYPE_LOCATION events. This example is useful for understanding the basic mechanisms for communicating between JavaScript and C++.