Android Open Source - BaseAndroid Key Dictionary






From Project

Back to project page BaseAndroid.

License

The source code is released under:

MIT License

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

/**
 * File: KeyDictionary/*w  w w  . ja v a2  s .c  o  m*/
 * CreationDate: $(DATE)
 * Author: "M. en C. Javier Silva Perez (JSP)"
 * Description: 
 *
 */
package com.cmovil.baseandroid.util;

import java.util.Locale;

/**
 * Class that should contain all keys used in this application, in order to prevent misspelled key values
 *
 * @author "M. en C. Javier Silva Perez (JSP)"
 * @version 1.0
 * @since 20/05/13
 */
public class KeyDictionary {

    /**
     * Tag to be used for log entries across the application
     */
    public static final String TAG = "BASE_TAG";

    /**
     * Key used by async task if every thing was ok
     */
    public static final int RESULT_OK = 1;
    /**
     * Key used by Async tasks if an error occurs
     */
    public static final int RESULT_ERROR = 0;
    /**
     * Default device language
     */
    public static final String LAN = Locale.getDefault().getLanguage();
    /**
     * Key used by AsyncTasks if Time out errors occurs
     */
    public static final int RESULT_ERROR_TIME_OUT = 1000;
    /**
     * Key used by AsyncTasks if Time out errors occurs
     */
    public static final int RESULT_ERROR_NO_MORE = 1001;

  /**
   * Key used by AsyncTasks if Network errors occurs
   */
  public static final int RESULT_ERROR_NETWORK = 1002;

  /**
   * Key used by AsyncTasks if Network errors occurs
   */
  public static final int RESULT_ERROR_INVALID_RESPONSE = 1003;

  /**
   * Key used by AsyncTasks if Network errors occurs
   */
  public static final int RESULT_ERROR_RESPONSE = 1004;

    /**
     * Static alpha value for disabled elements
     */
    public static final float DISABLE_ALPHA = 0.95f;
    /**
     * Static alpha value for disabled text elements
     */
    public static final float DISABLE_ALPHA_TEXT = 0.99f;
    /**
     * Static alpha value for disabled images
     */
    public static final float DISABLE_ALPHA_IMG = 0.5f;
    /**
     * Static alpha value for enabled values
     */
    public static final float ENABLED_ALPHA = 1.0f;
    /*
     * Define a request code to send to Google Play services
     * This code is returned in Activity.onActivityResult
     */
    public static final int CONNECTION_FAILURE_RESOLUTION_REQUEST = 9000;
  public static final int EMPTY_OBJECT_ID = 0;

  /**
     * Private default constructor, for prevent this class from been instantiated
     */
    private KeyDictionary() {
    }

    /**
     * Inner class for saving the request codes used along this application
     */
    public static class RequestCodes {

    }

    /**
     * Class that defines the parameters used when consuming PDA Web Services
     */
    public static class WSParameters {


      /**
       * Web service method names
       */
        public static class RequestWebServiceMethods {
        }
    }
}




Java Source Code List

com.cmovil.baseandroid.controller.BaseDBController.java
com.cmovil.baseandroid.controller.SampleController.java
com.cmovil.baseandroid.dao.db.BaseDBDAO.java
com.cmovil.baseandroid.dao.db.DBException.java
com.cmovil.baseandroid.dao.db.DatabaseDictionary.java
com.cmovil.baseandroid.dao.db.SampleDAO.java
com.cmovil.baseandroid.dao.db.helper.BaseDatabaseOpenHelper.java
com.cmovil.baseandroid.dao.db.helper.SampleOpenHelper.java
com.cmovil.baseandroid.dao.ws.BaseMessageWS.java
com.cmovil.baseandroid.dao.ws.InvalidResponseException.java
com.cmovil.baseandroid.dao.ws.WSClient.java
com.cmovil.baseandroid.model.db.BaseModel.java
com.cmovil.baseandroid.model.db.State.java
com.cmovil.baseandroid.model.ws.MessageErrorCode.java
com.cmovil.baseandroid.model.ws.Parser.java
com.cmovil.baseandroid.util.CMUtils.java
com.cmovil.baseandroid.util.CustomCatalogComparator.java
com.cmovil.baseandroid.util.KeyDictionary.java
com.cmovil.baseandroid.view.BaseActionBarActivity.java
com.cmovil.baseandroid.view.BaseDrawerActivity.java
com.cmovil.baseandroid.view.SplashActivity.java