Android Open Source - ContactsManager Constants






From Project

Back to project page ContactsManager.

License

The source code is released under:

Apache License

If you think the Android project ContactsManager 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 silverhillapps.com.contactsmanager.conf;
//  w  ww. j  a  v a 2 s.  c o m
/**
 * Constants class
 */
public class Constants {

    /**
     * Class for storing the rest api constants
     */
    public static final class RestApiConstants{
        public static final String CONTACTS_API_BASE_URL = "http://fast-gorge.herokuapp.com/";
        public static final String CONTACTS_LIST_METHOD = "contacts";

    }

    /**
     * Class for storing the database constants
     */
    public static final class DBConstants{

        // Database Version
        public static final int DATABASE_VERSION = 1;
        // Database name
        public static final String DATABASE_NAME = "contactsManagerSilverhillApps";
        // Notes table
        public static final String TABLE_CONTACTS = "contacts";

        // Note Table Columns names
        public static final String KEY_ID = "id";
        public static final String KEY_FIRST_NAME = "first_name";
        public static final String KEY_SURNAME = "surname";
        public static final String KEY_ADDRESS = "address";
        public static final String KEY_PHONE_NUMBER = "phone_number";
        public static final String KEY_EMAIL = "email";
        public static final String KEY_CREATED_AT = "createdAt";
        public static final String KEY_UPDATED_AT = "updatedAt";

    }

    /**
     * Class for storing the passing parameters ids contacts
     */
    public static final class PassingParamConstants{

        public static final int REST_RETURN_LIST_CONTACTS = 1;

        public static final java.lang.String ACTIVITY_PASS_CONTACT = "activity_pass_contact";
    }

}




Java Source Code List

silverhillapps.com.contactsmanager.ApplicationTest.java
silverhillapps.com.contactsmanager.CMApplication.java
silverhillapps.com.contactsmanager.ContactDetailActivity.java
silverhillapps.com.contactsmanager.ContactListActivity.java
silverhillapps.com.contactsmanager.adapter.ContactListAdapter.java
silverhillapps.com.contactsmanager.conf.Constants.java
silverhillapps.com.contactsmanager.db.DatabaseHandler.java
silverhillapps.com.contactsmanager.loader.ContactRepositoryModule.java
silverhillapps.com.contactsmanager.loader.ContactRepository.java
silverhillapps.com.contactsmanager.loader.RepositoryReceiver.java
silverhillapps.com.contactsmanager.manager.LoaderManagerFacade.java
silverhillapps.com.contactsmanager.manager.ManagerInterface.java
silverhillapps.com.contactsmanager.manager.ManagerModule.java
silverhillapps.com.contactsmanager.model.Contact.java
silverhillapps.com.contactsmanager.rest.ContactsRestClient.java
silverhillapps.com.contactsmanager.rest.RestContactRepository.java
silverhillapps.com.contactsmanager.utils.ConnectionUtils.java