Android Open Source - MusicFreshener Music Contract






From Project

Back to project page MusicFreshener.

License

The source code is released under:

GNU General Public License

If you think the Android project MusicFreshener 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.rky.musicfreshener;
//from   w w  w . j a v  a2 s. com
import android.provider.BaseColumns;

/**
 * Describes the music DB
 */
public final class MusicContract {
    // To prevent someone from accidentally instantiating the contract class,
    // give it an empty constructor.
    public MusicContract() {}

    /* Inner class that defines the table contents */
    public static abstract class MusicEntry implements BaseColumns {
        public static final String TABLE_NAME = "Music";
        public static final String COLUMN_NAME_ID = "_id";
        public static final String COLUMN_NAME_ARTIST = "artist";
        public static final String COLUMN_NAME_ALBUM = "album";
        public static final String COLUMN_NAME_GENRE = "genre";
        public static final String COLUMN_NAME_RATING = "rating";
        public static final String COLUMN_NAME_DATE = "date";
    }
}




Java Source Code List

com.rky.musicfreshener.DbUtilities.java
com.rky.musicfreshener.MainActivity.java
com.rky.musicfreshener.MusicContract.java
com.rky.musicfreshener.MusicDbHelper.java
com.rky.musicfreshener.NavigationDrawerFragment.java