// Path: core/src/main/java/com/novoda/location/Locator.java
// public interface Locator {
// 
// 	void prepare(Context c, LocatorSettings settings);
// 
// 	Location getLocation();
// 
// 	void setLocation(Location location);
// 
// 	LocatorSettings getSettings();
// 
// 	void startLocationUpdates() throws NoProviderAvailable;
// 
// 	void stopLocationUpdates();
// 
// 	boolean isNetworkProviderEnabled();
// 
// 	boolean isGpsProviderEnabled();
// 
// }
// 
// Path: core/src/main/java/com/novoda/location/LocatorFactory.java
// public class LocatorFactory {
// 	
// 	private static Locator instance; 
// 	
// 	public static Locator getInstance() {
// 		if(instance == null) {
// 			instance = new DefaultLocator();
// 		}
// 		return instance;
// 	}
// 
// 	public static void setLocation(Location location) {
// 		getInstance().setLocation(location);
// 	}
// 
// 	public static Location getLocation() {
// 		return getInstance().getLocation();
// 	}
// 	
// 	public static void reset() {
// 		instance = null;
// 	}
// 
// }
// 
// Path: core/src/main/java/com/novoda/location/LocatorSettings.java
// public class LocatorSettings {
// 
//     private final String packageName;
//     private final String updateAction;
// 
//     private boolean useGps = Constants.USE_GPS;
//     private boolean updateOnLocationChange = Constants.REFRESH_DATA_ON_LOCATION_CHANGED;
//     private long updatesInterval = Constants.UPDATES_MAX_TIME;
//     private int updatesDistance = Constants.UPDATES_MAX_DISTANCE;
//     private long passiveUpdatesInterval = Constants.DEFAULT_INTERVAL_PASSIVE;
//     private int passiveUpdatesDistance = Constants.DEFAULT_DISTANCE_PASSIVE;
//     private boolean enablePassiveUpdates = Constants.ENABLE_PASSIVE_UPDATES;
// 
//     public LocatorSettings(String packageName, String updateAction) {
//         this.packageName = packageName;
//         this.updateAction = updateAction;
//     }
//     
//     public String getPackageName() {
//         return packageName;
//     }
// 
//     public String getUpdateAction() {
//         return updateAction;
//     }
//     
//     public boolean shouldUseGps() {
//         return useGps;
//     }
// 
//     public void setUseGps(boolean useGps) {
//         this.useGps = useGps;
//     }
// 
//     public boolean shouldUpdateLocation() {
//         return updateOnLocationChange;
//     }
// 
//     public void setUpdateOnLocationChange(boolean updateOnLocationChange) {
//         this.updateOnLocationChange = updateOnLocationChange;
//     }
// 
//     public boolean shouldEnablePassiveUpdates() {
//         return enablePassiveUpdates;
//     }
// 
//     public void setEnablePassiveUpdates(boolean enablePassiveUpdates) {
//         this.enablePassiveUpdates = enablePassiveUpdates;
//     }
// 
//     public long getUpdatesInterval() {
//         return updatesInterval;
//     }
// 
//     public void setUpdatesInterval(long updatesInterval) {
//         this.updatesInterval = updatesInterval;
//     }
// 
//     public int getUpdatesDistance() {
//         return updatesDistance;
//     }
// 
//     public void setUpdatesDistance(int updatesDistance) {
//         this.updatesDistance = updatesDistance;
//     }
// 
//     public long getPassiveUpdatesInterval() {
//         return passiveUpdatesInterval;
//     }
// 
//     public void setPassiveUpdatesInterval(long passiveUpdatesInterval) {
//         this.passiveUpdatesInterval = passiveUpdatesInterval;
//     }
// 
//     public int getPassiveUpdatesDistance() {
//         return passiveUpdatesDistance;
//     }
// 
//     public void setPassiveUpdatesDistance(int passiveUpdatesDistance) {
//         this.passiveUpdatesDistance = passiveUpdatesDistance;
//     }
// 
// }


import android.app.Application;
import com.novoda.location.Locator;
import com.novoda.location.LocatorFactory;
import com.novoda.location.LocatorSettings;
package com.novoda.location.demo.simple;



public class ExampleApplication extends Application {
    
    public static final String PACKAGE_NAME = "com.novoda.location.demo.simple";
    public static final String LOCATION_UPDATE_ACTION = "com.novoda.location.demo.simple.action.ACTION_FRESH_LOCATION";

    private static Locator locator;
    
    @Override
    public void onCreate() {
        super.onCreate();
        // Connect the location finder with relevant settings.
// Path: core/src/main/java/com/novoda/location/Locator.java
// public interface Locator {
// 
// 	void prepare(Context c, LocatorSettings settings);
// 
// 	Location getLocation();
// 
// 	void setLocation(Location location);
// 
// 	LocatorSettings getSettings();
// 
// 	void startLocationUpdates() throws NoProviderAvailable;
// 
// 	void stopLocationUpdates();
// 
// 	boolean isNetworkProviderEnabled();
// 
// 	boolean isGpsProviderEnabled();
// 
// }
// 
// Path: core/src/main/java/com/novoda/location/LocatorFactory.java
// public class LocatorFactory {
// 	
// 	private static Locator instance; 
// 	
// 	public static Locator getInstance() {
// 		if(instance == null) {
// 			instance = new DefaultLocator();
// 		}
// 		return instance;
// 	}
// 
// 	public static void setLocation(Location location) {
// 		getInstance().setLocation(location);
// 	}
// 
// 	public static Location getLocation() {
// 		return getInstance().getLocation();
// 	}
// 	
// 	public static void reset() {
// 		instance = null;
// 	}
// 
// }
// 
// Path: core/src/main/java/com/novoda/location/LocatorSettings.java
// public class LocatorSettings {
// 
//     private final String packageName;
//     private final String updateAction;
// 
//     private boolean useGps = Constants.USE_GPS;
//     private boolean updateOnLocationChange = Constants.REFRESH_DATA_ON_LOCATION_CHANGED;
//     private long updatesInterval = Constants.UPDATES_MAX_TIME;
//     private int updatesDistance = Constants.UPDATES_MAX_DISTANCE;
//     private long passiveUpdatesInterval = Constants.DEFAULT_INTERVAL_PASSIVE;
//     private int passiveUpdatesDistance = Constants.DEFAULT_DISTANCE_PASSIVE;
//     private boolean enablePassiveUpdates = Constants.ENABLE_PASSIVE_UPDATES;
// 
//     public LocatorSettings(String packageName, String updateAction) {
//         this.packageName = packageName;
//         this.updateAction = updateAction;
//     }
//     
//     public String getPackageName() {
//         return packageName;
//     }
// 
//     public String getUpdateAction() {
//         return updateAction;
//     }
//     
//     public boolean shouldUseGps() {
//         return useGps;
//     }
// 
//     public void setUseGps(boolean useGps) {
//         this.useGps = useGps;
//     }
// 
//     public boolean shouldUpdateLocation() {
//         return updateOnLocationChange;
//     }
// 
//     public void setUpdateOnLocationChange(boolean updateOnLocationChange) {
//         this.updateOnLocationChange = updateOnLocationChange;
//     }
// 
//     public boolean shouldEnablePassiveUpdates() {
//         return enablePassiveUpdates;
//     }
// 
//     public void setEnablePassiveUpdates(boolean enablePassiveUpdates) {
//         this.enablePassiveUpdates = enablePassiveUpdates;
//     }
// 
//     public long getUpdatesInterval() {
//         return updatesInterval;
//     }
// 
//     public void setUpdatesInterval(long updatesInterval) {
//         this.updatesInterval = updatesInterval;
//     }
// 
//     public int getUpdatesDistance() {
//         return updatesDistance;
//     }
// 
//     public void setUpdatesDistance(int updatesDistance) {
//         this.updatesDistance = updatesDistance;
//     }
// 
//     public long getPassiveUpdatesInterval() {
//         return passiveUpdatesInterval;
//     }
// 
//     public void setPassiveUpdatesInterval(long passiveUpdatesInterval) {
//         this.passiveUpdatesInterval = passiveUpdatesInterval;
//     }
// 
//     public int getPassiveUpdatesDistance() {
//         return passiveUpdatesDistance;
//     }
// 
//     public void setPassiveUpdatesDistance(int passiveUpdatesDistance) {
//         this.passiveUpdatesDistance = passiveUpdatesDistance;
//     }
// 
// }


// Path: simple/src/com/novoda/location/demo/simple/ExampleApplication.java
import android.app.Application;
import com.novoda.location.Locator;
import com.novoda.location.LocatorFactory;
import com.novoda.location.LocatorSettings;

package com.novoda.location.demo.simple;



public class ExampleApplication extends Application {
    
    public static final String PACKAGE_NAME = "com.novoda.location.demo.simple";
    public static final String LOCATION_UPDATE_ACTION = "com.novoda.location.demo.simple.action.ACTION_FRESH_LOCATION";

    private static Locator locator;
    
    @Override
    public void onCreate() {
        super.onCreate();
        // Connect the location finder with relevant settings.
        LocatorSettings settings = new LocatorSettings(PACKAGE_NAME, LOCATION_UPDATE_ACTION);