Android Open Source - GroupGoal Application

From Project

Back to project page GroupGoal.


The source code is released under:

GNU General Public License

If you think the Android project GroupGoal listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.cs121.groupgoal;
//ww  w  .  ja  v  a 2s.c  o  m
import android.content.Context;
import android.content.SharedPreferences;

import com.parse.Parse;
import com.parse.ParseObject;

public class Application extends {
  // Debugging switch
  public static final boolean APPDEBUG = false;

  // Debugging tag for the application
  public static final String APPTAG = "GroupGoal";

  // Used to pass location from MainActivity to PostActivity
  public static final String INTENT_EXTRA_LOCATION = "location";

  // Key for saving the search distance preference
  private static final String KEY_SEARCH_DISTANCE = "searchDistance";

  private static final float DEFAULT_SEARCH_DISTANCE = 250.0f;

  private static SharedPreferences preferences;

  private static ConfigHelper configHelper;

  public Application() {

  public void onCreate() {

    Parse.initialize(this, "taKaWQ9jdSlG2DryqXcpg0Aq8FMobmFjiS6K500d",
        "y0C4d44dKDn6FFJdyigkjAaonrrzbGytUzbU59Bp"); //our personal codes to access the Parse account we created

    preferences = getSharedPreferences("com.cs121.groupgoal", Context.MODE_PRIVATE);

    configHelper = new ConfigHelper();

  public static float getSearchDistance() {
    return preferences.getFloat(KEY_SEARCH_DISTANCE, DEFAULT_SEARCH_DISTANCE);

  public static ConfigHelper getConfigHelper() {
    return configHelper;

  public static void setSearchDistance(float value) {
    preferences.edit().putFloat(KEY_SEARCH_DISTANCE, value).commit();


Java Source Code List