Code example for LocationManager

Methods: setTestProviderLocation

0
    } 
 
    try { 
      if (loc != null) {
        loc.setProvider(provider);
        manager.setTestProviderLocation(provider, loc);
      } 
    } catch (SecurityException ex) {
      close(); 
      Toast.makeText(context, "Simulated GPS data disabled by your device",
          Toast.LENGTH_LONG).show();
    } 
  } 
 
  private class GPSDriverThread extends Thread {
 
    /** 
     * Constructor 
     */ 
    public GPSDriverThread() { 
      super("SimGPS");