com.netmera.mobile
Class NetmeraLocationService

java.lang.Object
  extended by com.netmera.mobile.NetmeraLocationService

public class NetmeraLocationService
extends java.lang.Object

This class is used to activate / deactivate Location Service.


Method Summary
static void init(NetmeraLocationSettings locationSettings, android.content.Context context)
          To be able to start Location Service, you should first call this method with the given parameters.
static void startLocationService()
          Starts Location Service of Netmera.
static void stopLocationService()
          Stops Location Service.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

init

public static void init(NetmeraLocationSettings locationSettings,
                        android.content.Context context)
                 throws NetmeraException
To be able to start Location Service, you should first call this method with the given parameters.

Parameters:
locationSettings - a NetmeraLocationSettings instance
context - a Context instance
Throws:
NetmeraException - if your Netmera account type does not have LocationService usage permission.

startLocationService

public static void startLocationService()
Starts Location Service of Netmera. After calling this method, your app will start location tracking.


stopLocationService

public static void stopLocationService()
Stops Location Service. After calling this method, your app will no longer get location updates.