Android Open Source - bgrates Defs






From Project

Back to project page bgrates.

License

The source code is released under:

MIT License

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

/*
 * The MIT License/* w  w w  . ja va 2s. c o  m*/
 * 
 * Copyright (c) 2010 Petar Petrov
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
package net.vexelon.bgrates;

public class Defs {

  final static String LOG_TAG = "net.vexelon.bgrates";
  final static String PREFS_NAME = "BGratesPreferences";
  final static String PREFS_KEY_LASTUPDATE = "lastUpdate";
  final static String PREFS_KEY_LASTUPDATE_TIME = "lastUpdateTime";
  final static String PREFS_KEY_PREV_RATES_FILE = "previousExchgRatesFile";
  final static String CONV_PREFS_NAME = "BGratesPreferencesConvert";
  final static String CONV_PREFS_KEY_CONVITEMS_COUNT = "ConvertItemsCount";
  final static String CONV_PREFS_KEY_ITEM = "ConvertItem_";
  
  final static String URL_BNB_FORMAT = "http://www.bnb.bg/Statistics/StExternalSector/StExchangeRates/StERForeignCurrencies/?download=xml&lang=%s";
  final static String URL_BNB_SUFFIX_BG = "BG";
  final static String URL_BNB_SUFFIX_EN = "EN";
  final static String URI_CACHE_NAME = "BGRatesDownloadCache";
  final static String URL_BNB_INDEX = "http://www.bnb.bg/index.htm";
  final static String URI_CACHE_NAME_INDEXHTM = "BGRatesDownloadCacheHTM";
  
  final static String INT_EXCHANGERATES = "int-exch";
  
  final static int MAX_RATE_CHARS_SIZE = 8;
  final static int MAX_TOAST_INFO_TIME = 3150;
  
  final static String XML_TAG_ROWSET = "ROWSET";
  final static String XML_TAG_ROW = "ROW";
  final static String XML_TAG_GOLD = "GOLD";
  final static String XML_TAG_NAME = "NAME_";
  final static String XML_TAG_CODE = "CODE";
  final static String XML_TAG_RATIO = "RATIO";
  final static String XML_TAG_REVERSERATE = "REVERSERATE";
  final static String XML_TAG_RATE = "RATE";
  final static String XML_TAG_EXTRAINFO = "EXTRAINFO";
  final static String XML_TAG_CURR_DATE = "CURR_DATE";
  final static String XML_TAG_TITLE = "TITLE";
  final static String XML_TAG_F_STAR = "F_STAR";
  
  final static int MENU_REFRESH = 10;
  final static int MENU_BG_RATES = 12;
  final static int MENU_EN_RATES = 14;
  final static int MENU_CONVERT = 15;
  final static int MENU_ABOUT = 20;
  
  final static int ACTIVITYRESULT_CLOSE = 100;
  
  final static int SCALE_SHOW_LONG = 5;
  final static int SCALE_SHOW_SHORT = 3;
  final static int SCALE_CALCULATIONS = 10;
  
  final static int MAX_CONVERT_ROWS = 4;
  
  final static String INTENT_FLAG_ID = "_FLAG_ID";
  final static String INTENT_OLD_RATEINFO = "_OLD_RATEINFO";
  final static String INTENT_NEW_RATEINFO = "_NEW_RATEINFO";
  final static String INTENT_NEW_RATEINFO_TENDENCY_ICONID = "_INTENT_NEW_RATEINFO_TENDENCY_ICONID";

}




Java Source Code List

net.vexelon.bgrates.AboutActivity.java
net.vexelon.bgrates.ConvertActivity.java
net.vexelon.bgrates.ConvertCurrencyAdapter.java
net.vexelon.bgrates.ConvertRow.java
net.vexelon.bgrates.CurrencyInfo.java
net.vexelon.bgrates.CurrencyListAdapter.java
net.vexelon.bgrates.Defs.java
net.vexelon.bgrates.ExchangeRate.java
net.vexelon.bgrates.HeaderInfo.java
net.vexelon.bgrates.MainActivity.java
net.vexelon.bgrates.RateInfoActivity.java
net.vexelon.bgrates.Utils.java