Android Open Source - SimpleAndroidChat Constants






From Project

Back to project page SimpleAndroidChat.

License

The source code is released under:

GNU General Public License

If you think the Android project SimpleAndroidChat 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.anderscore.simpleandroidchat;
/*  w  ww.  j  a  v  a 2s .co m*/
public final class Constants {
  
  public static final String HOST   = "max-johenneken.de";
  public static final String USER   = "test1";
  public static final String PASSWORD = "test1";
  public static final Integer PORT   = 5222;
  
  public static final class Event {
    public static final int CONTACT = 1;
    public static final int MSG   = 2;
  }
  
  public static final class Extra {
    public static final String USER_ID = "user_id";
    public static final String IS_ONLINE = "is_online";
  }
  
  public static final class DB{
    public static final String   DB_NAME      = "simpleAndroidChatDB";
    public static final int   DB_VERSION    = 1;
    
    public static final class Contacts{
      public static final String TABLE_NAME  = "contacts";
      public static final String ID      = "_ID";
      public static final String USER      = "user";
      public static final String ONLINE    = "isOnline";
    }
    
    public static final class Messages{
      public static final String TABLE_NAME  = "messages";
      public static final String ID      = "_ID";
      public static final String USER_ID    = "user_id";
      public static final String INCOMMING  = "is_incomming";
      public static final String TEXT_MSG    = "text_msg";
    }
  }
  
  public static final int NOTIFICATION_INDEX    = 4711;
  
  public enum OnlineStatus{
    OFFLINE, MOBILE, WIFI
  }
}




Java Source Code List

com.anderscore.simpleandroidchat.AbstractActivity.java
com.anderscore.simpleandroidchat.ChatActivity.java
com.anderscore.simpleandroidchat.ChatListAdapter.java
com.anderscore.simpleandroidchat.ChatMsg.java
com.anderscore.simpleandroidchat.ConnectionAdapterEventbus.java
com.anderscore.simpleandroidchat.ConnectionAdapter.java
com.anderscore.simpleandroidchat.Constants.java
com.anderscore.simpleandroidchat.ContactListActivity.java
com.anderscore.simpleandroidchat.ContactListAdapter.java
com.anderscore.simpleandroidchat.Contact.java
com.anderscore.simpleandroidchat.DBConnection.java
com.anderscore.simpleandroidchat.DBModel.java
com.anderscore.simpleandroidchat.MessengerService.java
com.anderscore.simpleandroidchat.NotificationBuilder.java