Android Open Source - sigimera-android-app Constants






From Project

Back to project page sigimera-android-app.

License

The source code is released under:

GNU General Public License

If you think the Android project sigimera-android-app 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

/**
 * Sigimera Crises Information Platform Android Client
 * Copyright (C) 2012 by Sigimera/*w ww. j  a va 2s .c om*/
 * All Rights Reserved
 * 
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the Free
 * Software Foundation; either version 2 of the License, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc., 51
 * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 */
package org.sigimera.app.android.model;

/**
 * Class which includes all the constants used in the Sigimera App.
 * 
 * @author Corneliu-Valentin Stanciu
 * @email  corneliu.stanciu@sigimera.org
 */
public abstract class Constants {
  
  /**
   * LOGs
   */
  public static final String LOG_TAG_SIGIMERA_APP = "SigimeraApp";
  public static final String LOG_TAG_LOCATION_CONTROLLER = "LocationController";
  public static final String LOG_TAG_CONFIG = "Config";
  
  /**
   * Location radius in kilometres
   */
  public static final int LOCATION_RADIUS = 200;
  
  public static final double MAX_DISTANCE_NEAR_CRISIS = 5000;
  public static final double MIN_DISTANCE_NEAR_CRISIS = 50;
  
  
  /**
   * Keys
   */
  public static final String CRISES_LIST = "crises_list";  
  public static final String CRISIS = "crisis";
  public static final String CRISIS_ID = "crisis_id";
  public static final String LATITUDE = "latitude";
  public static final String LONGITUDE = "longitude";
  public static final String CRISIS_TYPE = "crisis_type";
  public static final String TOP = "top";
  public static final String BOTTOM = "bottom";  
  public static final String ICON = "icon";
  public static final String ARROW = "rightArrow";
  public static final String WINDOW_TYPE = "window_type"; 
  
  /**
   * Crisis types.
   */
  public static final String EARTHQUAKE = "earthquake";
  public static final String FLOOD = "flood";
  public static final String CYCLONE = "cyclone";
  public static final String VOLCANO = "volcano";
  
  /**
   * Style handling.
   */
  public static final String LATEST_CRISIS = "LATEST_CRISIS";
  public static final String NEAR_CRISIS = "NEAR_CRISIS";
  
  /**
   * Window types.
   */
  public static final String WINDOW_TYPE_SHARED_CRISIS = "shared_crisis";
  
  /**
   * Notification Identifier.
   */
  public static final int PING_ID = 12627;
  
  /**
   * Preferences.
   */
  public static final String PREFS_NAME = "session_handler_preferences";
  
  
  /**
   * Static codes.
   */
  
  /**
   * 201 - created.
   */
  public static final int STATUS_CODE_CREATED = 201;
    
  
  /**
   * Time to sleep - 1 second.
   */
  public static final int TIME_TO_SLEEP_ONE_SEC = 1000;
  
  /**
   * Time to sleep - 2 seconds.
   */
  public static final int TIME_TO_SLEEP_TWO_SEC = 2000;
}




Java Source Code List

org.sigimera.app.android.CrisesListFragment.java
org.sigimera.app.android.CrisisActivity.java
org.sigimera.app.android.CrisisAlertActivity.java
org.sigimera.app.android.GCMIntentService.java
org.sigimera.app.android.LoginFragment.java
org.sigimera.app.android.MainActivity.java
org.sigimera.app.android.OfflineMode.java
org.sigimera.app.android.ProfileFragment.java
org.sigimera.app.android.StatisticFragment.java
org.sigimera.app.android.StatsFragment.java
org.sigimera.app.android.TabManager.java
org.sigimera.app.android.TabsAdapter.java
org.sigimera.app.android.ToastNotification.java
org.sigimera.app.android.backend.PersistentStorage.java
org.sigimera.app.android.backend.auth.AccountAuthenticator.java
org.sigimera.app.android.backend.auth.AuthenticationService.java
org.sigimera.app.android.backend.auth.AuthenticatorActivity.java
org.sigimera.app.android.backend.network.CrisesHttpHelper.java
org.sigimera.app.android.backend.network.LocationUpdaterHttpHelper.java
org.sigimera.app.android.backend.network.LoginHttpHelper.java
org.sigimera.app.android.backend.network.MyHttpClient.java
org.sigimera.app.android.backend.network.NearCrisesHttpHelper.java
org.sigimera.app.android.backend.network.SingleCrisisHttpHelper.java
org.sigimera.app.android.backend.network.StatisticCrisesHttpHelper.java
org.sigimera.app.android.backend.network.StatisticUsersHttpHelper.java
org.sigimera.app.android.controller.ApplicationController.java
org.sigimera.app.android.controller.DistanceController.java
org.sigimera.app.android.controller.LocationController.java
org.sigimera.app.android.controller.PersistanceController.java
org.sigimera.app.android.controller.SessionHandler.java
org.sigimera.app.android.exception.AuthenticationErrorException.java
org.sigimera.app.android.model.Constants.java
org.sigimera.app.android.model.CrisesStats.java
org.sigimera.app.android.model.Crisis.java
org.sigimera.app.android.model.UserSettings.java
org.sigimera.app.android.model.User.java
org.sigimera.app.android.model.UsersStats.java
org.sigimera.app.android.model.map.CollectionOverlay.java
org.sigimera.app.android.util.Common.java
org.sigimera.app.android.util.Config.java
org.sigimera.app.android.util.MD5Util.java