Skip to content

Instantly share code, notes, and snippets.

@claraj
Created November 14, 2016 19:57
Show Gist options
  • Save claraj/7dfcf2e2bcd423a19a338703b358b171 to your computer and use it in GitHub Desktop.
Save claraj/7dfcf2e2bcd423a19a338703b358b171 to your computer and use it in GitHub Desktop.
package com.bignerdranch.android.scavengerhunttemp;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
public class ActiveHuntActivity extends AppCompatActivity {
private static final String TAG = "Active hunt activity";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_active_hunt);
ScavengerHunt hunt = savedInstanceState.getParcelable("HUNT");
Log.d(TAG, hunt.toString());
//set up geofences
//monitor geofences.
//Use GeoFence *service* that updates the Firebase DB as locations are found
//send update to Firebase every time a place is found - for this user, for this hunt.
//From this Activity, run a query that monitors the user's scavenger hunt
//if user finds all places, do something.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment