Skip to content

Instantly share code, notes, and snippets.

Created January 18, 2016 17:02
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
public class GeofenceController {
private static GeofenceController instance;
private GoogleApiClient googleApiClient;
public static GeofenceController getInstance() {
if (instance == null) {
instance = new GeofenceController();
return instance;
public void startGoogleApiClient(GoogleApiClient.ConnectionCallbacks callback, ConnectionFailedCallBack connectionFailedListener) {
googleApiClient = new GoogleApiClient.Builder(GeofenceApplication.CONTEXT)
public void stopGoogleApiClient() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment