Android Open Source - student_travel_app Constant






From Project

Back to project page student_travel_app.

License

The source code is released under:

Apache License

If you think the Android project student_travel_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

package com.piasy.simpletravel.model;
/*from   w w w .ja  v  a2s.  c o  m*/
import android.os.Environment;

/**
 * <p>Constants will be used in the program.</p>
 *  
 *  
 * <p>author:   Piasy Xu</p>
 * <p>date:    19:54 2013/12/22</p>
 * <p>email:  xz4215@gmail.com</p>
 * <p>github:  Piasy</p>
 * */
public class Constant
{
  public static final String APP_PREF_NAME = "StuTravelPref";
  
  public static final String LOG_LEVEL_INFO = "INFO";
  public static final String LOG_LEVEL_DEBUG = "DEBUG";
  public static final String LOG_LEVEL_WARNING = "WARNING";
  public static final String LOG_LEVEL_ERROR = "ERROR";
  public static final String LOG_LEVEL_FATAL = "FATAL";
  
  public static final String INVALID_TOKEN = "INVALID";
  public static final String NO_PHOTO = "NO_PHOTO";
  
  public static final String APP_CACHE_DIR = Environment.getExternalStorageDirectory().toString() + "/.travalAppCache";
  
  public static final int SIGNUP = 1;
  public static final int VERIFY = 2;
  public static final int QUERY = 3;
  public static final int COMMIT = 4;
  public static final int AROUND_SPOTS = 5;
  public static final int LISTVIEW_ITEM_SPOT = 1;
  public static final int LISTVIEW_ITEM_TRAFFIC = 2;
  public static final int LISTVIEW_ITEM_HOTEL = 3;
  public static final int LISTVIEW_ITEM_PLAN = 4;
  public static final int LISTVIEW_ITEM_SPOT_SEARCH = 5;
  public static final int LISTVIEW_ITEM_HOTEL_SEARCH = 6;
  public static final int PLAN_STATUS_ADD = 1;
  public static final int PLAN_STATUS_PLAN = 2;
  public static final int PLAN_STATUS_HIST = 3;
  public static final int ACTIVITY_ALLPLAN = 1;
  public static final int ACTIVITY_SINGLEDAY = 2;
  public static final int ACTIVITY_SEARCH = 3;
  public static final int SIGNUP_SUCCESS = 20;
  public static final int MAX_TITLE_LEN = 10;
  public static final int VIEW_SPOTS_MAP = 1;
  public static final int VIEW_POS_MAP = 2;
  public static final int SEARCH_BY_KEYWORD = 1;
  public static final int SEARCH_BY_CITY = 2;
  
  
  public static final int BUFFER_SIZE = 24 * 1024;
  public static final int THREAD_POOL_SIZE = 5000;
  public static final int TOKEN_LENGTH = 64;
  public static final int REFRESH_TIME_INTERVAL = 24 * 3600 * 1000;
  public static final int SPOTS_PAGE_SIZE = 16;
  public static final int POI_SEARCH_PAGE_CAPACITY = 20;
  public static final int ROUTE_REQUESR_TIMEOUT = 5 * 1000;
  public static final int ROUTE_REQUESR_INTERVAL = 4 * 1000;
  public static final int SPOT_INTRO_LEN = 41;
  public static final int POS_REQ_TIMESTAMP = 5 * 60 * 1000;
  public static final int HTTPCLIENT_CON_TIMEOUT = 30 * 1000;
  public static final int HTTPCLIENT_READ_TIMEOUT = 30 * 1000;
  
  public static final long VERIFY_TIME_OUT = 5 * 1000;
  
  public static final int ZOOM_LEVEL3_WIDTH = 128000000;
  
  public static final int POPUP_VIEW_INMAP = 1;
  public static final int POPUP_VIEW_INACTIVITY = 2;
}




Java Source Code List

com.piasy.simpletravel.AllPlanActivity.java
com.piasy.simpletravel.HotelDetailActivity.java
com.piasy.simpletravel.LaunchActivity.java
com.piasy.simpletravel.MapViewActivity.java
com.piasy.simpletravel.MyListViewAdapter.java
com.piasy.simpletravel.PopMenu.java
com.piasy.simpletravel.ScrollRefreshListView.java
com.piasy.simpletravel.SearchActivity.java
com.piasy.simpletravel.SettingActivity.java
com.piasy.simpletravel.SignupActivity.java
com.piasy.simpletravel.SimpleTravelApplication.java
com.piasy.simpletravel.SingledayPlanActivity.java
com.piasy.simpletravel.SpotDetailActivity.java
com.piasy.simpletravel.controller.Controller.java
com.piasy.simpletravel.dao.DBHelper.java
com.piasy.simpletravel.dao.DBManager.java
com.piasy.simpletravel.model.CommitModule.java
com.piasy.simpletravel.model.Constant.java
com.piasy.simpletravel.model.Flag.java
com.piasy.simpletravel.model.HotelSeacher.java
com.piasy.simpletravel.model.ListViewItems.java
com.piasy.simpletravel.model.LocationModule.java
com.piasy.simpletravel.model.PlanGenerator.java
com.piasy.simpletravel.model.RouteEntry.java
com.piasy.simpletravel.model.Setting.java
com.piasy.simpletravel.model.SignupModule.java
com.piasy.simpletravel.model.SpotsSeacher.java
com.piasy.simpletravel.model.VerifyModule.java
com.piasy.simpletravel.util.Util.java
dao.DBManager.java
driver.Driver.java
model.CommitHandler.java
model.Constant.java
model.QueryHandler.java
model.Setting.java
model.SignupHandler.java
model.VerifyHandler.java
parser.Driver.java
parser.HotelSeacher.java
util.Util.java