Android Open Source - LearningAndroid2edYamba2 Status Contract






From Project

Back to project page LearningAndroid2edYamba2.

License

The source code is released under:

Apache License

If you think the Android project LearningAndroid2edYamba2 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.marakana.android.yamba;
/*  w ww  .ja va2s.  c  o  m*/
import android.net.Uri;
import android.provider.BaseColumns;

public class StatusContract {

  // DB specific constants
  public static final String DB_NAME = "timeline.db";
  public static final int DB_VERSION = 1;
  public static final String TABLE = "status";

  // Provider specific constants
  // content://com.marakana.android.yamba.StatusProvider/status
  public static final String AUTHORITY = "com.marakana.android.yamba.StatusProvider";
  public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY
      + "/" + TABLE);
  public static final int STATUS_ITEM = 1;
  public static final int STATUS_DIR = 2;
  public static final String STATUS_TYPE_ITEM = "vnd.android.cursor.item/vnd.com.marakana.android.yamba.provider.status";
  public static final String STATUS_TYPE_DIR = "vnd.android.cursor.dir/vnd.com.marakana.android.yamba.provider.status";
  public static final String DEFAULT_SORT = Column.CREATED_AT + " DESC";

  public class Column {
    public static final String ID = BaseColumns._ID;
    public static final String USER = "user";
    public static final String MESSAGE = "message";
    public static final String CREATED_AT = "created_at";
  }
}




Java Source Code List

com.marakana.android.yamba.BootReceiver.java
com.marakana.android.yamba.DbHelper.java
com.marakana.android.yamba.DetailsActivity.java
com.marakana.android.yamba.DetailsFragment.java
com.marakana.android.yamba.FreshnessView.java
com.marakana.android.yamba.MainActivity.java
com.marakana.android.yamba.NotificationReceiver.java
com.marakana.android.yamba.RefreshService.java
com.marakana.android.yamba.SettingsActivity.java
com.marakana.android.yamba.SettingsFragment.java
com.marakana.android.yamba.StatusActivity.java
com.marakana.android.yamba.StatusContract.java
com.marakana.android.yamba.StatusFragment.java
com.marakana.android.yamba.StatusProvider.java
com.marakana.android.yamba.SubActivity.java
com.marakana.android.yamba.TimelineFragment.java
com.marakana.android.yamba.YambaWidget.java