Skip to content

A logging app showing the GPS latitude/longitude and WiFi accespoints created with phonegap.

License

Notifications You must be signed in to change notification settings

thomasv/phonegap-position-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phonegap-position-logger

A logging app showing the GPS latitude/longitude and WiFi accespoints created with phonegap.

Basic app structure from phonegap-start

Setup

Requirements

Install phonegap

npm install -g phonegap

If npm doesn't work, install latest nodejs.

Install required plugins

The app uses the following plugins that must be installed locally

phonegap local plugin add org.apache.cordova.device-orientation
phonegap local plugin add org.apache.cordova.geolocation

Usage

Run application on emulator (Android)

Important: For geolocation the option enableHighAccuracy in function call navigator.geolocation.getCurrentPosition must be set to true when running on emulator (see www/js/geolocation.js)

  1. Start emulator

  2. Set latitude and longitude for emulator (i.e. lat 50, lon 9)

     telnet localhost 5554
     geo fix 50 9
    
  3. Set orientation for emulator (i.e. 135 degress for south east orientation)

     telnet localhost 5554
     sensor set orientation 135
    
  4. Compile application and install on emulator

     phonegap local run android --emulator
    

Run application on device (Android)

Either:

  1. Build app

     phonegap local build android
    
  2. Copy file platforms/android/bin/PositionLogger-debug.apk to your phone and install

Or:

  1. Connect device to your machine and configure device.

  2. Install app on device

     phonegap local run android --device
    

About

A logging app showing the GPS latitude/longitude and WiFi accespoints created with phonegap.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published