Back to project page ColorWallpaper.
The source code is released under:
Licensed under the Expat License. Copyright (C) 2013 Peter Occil Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the...
If you think the Android project ColorWallpaper listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.upokecenter.android.location; //from ww w . j a v a2 s . com import java.util.ArrayList; import android.content.Context; public final class DummyLocationHelper implements ILocationHelper { private ArrayList<ISimpleLocationListener> listeners=null; public DummyLocationHelper(){ listeners=new ArrayList<ISimpleLocationListener>(); } public DummyLocationHelper(Context context){ listeners=new ArrayList<ISimpleLocationListener>(); } @Override public void removeAllLocationListeners() { listeners.clear(); } @Override public void removeLocationListener(ISimpleLocationListener simpleListener) { listeners.remove(simpleListener); } @Override public void addLocationListener(ISimpleLocationListener simpleListener) { listeners.add(simpleListener); simpleListener.onLocation(null); } @Override public void setLocationEnabled(boolean enabled) { } @Override public void setUpdateFrequency(int minTime, int minDistance) { } @Override public void setFineAccuracy(boolean fine) { } @Override public boolean isLocationEnabled() { return false; } }