Android Open Source - LyricHere Constants






From Project

Back to project page LyricHere.

License

The source code is released under:

Apache License

If you think the Android project LyricHere 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 cn.zhaiyifan.lyrichere;
/* ww w  .jav  a2 s. co  m*/
import android.net.Uri;
import android.provider.BaseColumns;

/**
 * Created by yifan on 5/17/14.
 */
public class Constants {
    public static final boolean DEBUG_ON = false;

    // Lyric tag
    public static final String ID_TAG_TITLE = "ti";
    public static final String ID_TAG_ARTIST = "ar";
    public static final String ID_TAG_ALBUM = "al";
    public static final String ID_TAG_CREATOR_LRCFILE = "by";
    public static final String ID_TAG_CREATOR_SONGTEXT = "au";
    public static final String ID_TAG_LENGTH = "length";
    public static final String ID_TAG_OFFSET = "offset";

    // DB specific constants
    public static final String DB_NAME = "lyric.db";
    public static final int DB_VERSION = 4;
    public static final String TABLE = "lyric";

    // Notification
    public static final int NOTIFY_ID = 5656;

    // Provider specific constants
    public static final String AUTHORITY = "markzhai.lyrichere.app.db.LyricContentProvider";
    public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/" + TABLE);
    public static final int LYRIC_ITEM = 1;
    public static final int LYRIC_DIR = 2;
    public static final String LYRIC_TYPE_ITEM =
            "vnd.android.cursor.item/vnd.markzhai.provider.lyric";
    public static final String LYRIC_TYPE_DIR =
            "vnd.android.cursor.dir/vnd.markzhai.provider.lyric";
    public static final String DEFAULT_SORT = Column.ID + " DESC";
    public static final String RECENT_SORT = Column.LAST_VISITED_AT + " DESC";
    public static final String TITLE_SORT = Column.TITLE + " ASC";
    public static final String ENCODE_UTF_8 = "UTF-8";
    public static final String ENCODE_BIG5 = "Big5";
    public static final String ENCODE_GBK = "GBK";
    public static final String ENCODE_SJIS = "MS932";

    public class Column {
        public static final String ID = BaseColumns._ID;
        public static final String TITLE = "title";
        public static final String ARTIST = "artist";
        public static final String ALBUM = "album";
        public static final String LENGTH = "length";
        public static final String PATH = "path";
        public static final String ENCODING = "encode";
        public static final String ENCODING_CHANGED = "encode_changed";
        public static final String LAST_VISITED_AT = "last_visited_at";
    }
}




Java Source Code List

cn.zhaiyifan.lyrichere.ApplicationTest.java
cn.zhaiyifan.lyrichere.Constants.java
cn.zhaiyifan.lyrichere.MusicBroadcastReceiver.java
cn.zhaiyifan.lyrichere.adapters.LyricCursorAdapter.java
cn.zhaiyifan.lyrichere.db.DbHelper.java
cn.zhaiyifan.lyrichere.db.LyricContentProvider.java
cn.zhaiyifan.lyrichere.model.Lyric.java
cn.zhaiyifan.lyrichere.prefs.SettingsActivity.java
cn.zhaiyifan.lyrichere.prefs.SettingsFragment.java
cn.zhaiyifan.lyrichere.prefs.colorpicker.AlphaPatternDrawable.java
cn.zhaiyifan.lyrichere.prefs.colorpicker.ColorPickerDialog.java
cn.zhaiyifan.lyrichere.prefs.colorpicker.ColorPickerPanelView.java
cn.zhaiyifan.lyrichere.prefs.colorpicker.ColorPickerPreference.java
cn.zhaiyifan.lyrichere.prefs.colorpicker.ColorPickerView.java
cn.zhaiyifan.lyrichere.prefs.colorpicker.Test.java
cn.zhaiyifan.lyrichere.ui.AboutActivity.java
cn.zhaiyifan.lyrichere.ui.DownloadFragment.java
cn.zhaiyifan.lyrichere.ui.ListScrollTextView.java
cn.zhaiyifan.lyrichere.ui.LyricExplorerActivity.java
cn.zhaiyifan.lyrichere.ui.LyricExplorerFragment.java
cn.zhaiyifan.lyrichere.ui.LyricPlayerActivity.java
cn.zhaiyifan.lyrichere.ui.LyricPlayerFragment.java
cn.zhaiyifan.lyrichere.ui.LyricSearchView.java
cn.zhaiyifan.lyrichere.ui.LyricView.java
cn.zhaiyifan.lyrichere.utils.DbUtils.java
cn.zhaiyifan.lyrichere.utils.FileUtils.java
cn.zhaiyifan.lyrichere.utils.LyricCache.java
cn.zhaiyifan.lyrichere.utils.LyricProvider.java
cn.zhaiyifan.lyrichere.utils.LyricUtils.java
cn.zhaiyifan.lyrichere.utils.Util.java
cn.zhaiyifan.lyrichere.workers.Finder.java
cn.zhaiyifan.lyrichere.workers.LyricEncodingUpdater.java
cn.zhaiyifan.lyrichere.workers.LyricLastVisitUpdater.java
cn.zhaiyifan.lyrichere.workers.LyricOpener.java