Android Open Source - testApp1_android Song






From Project

Back to project page testApp1_android.

License

The source code is released under:

MIT License

If you think the Android project testApp1_android 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 h.d.t.model;
//w w w .j ava  2s. c  o  m
import android.database.Cursor;

public class Song {
  public String id;
  public String name;
  public String lyric;
  public String author;
  public int manufacture;
  public String tag;
  public boolean isLike;
  public String abbr;
  public int language;

  public Song(Cursor c) {
    int a = c.getInt(c.getColumnIndex("ZIS_LIKE"));
    isLike = a > 0;
    id = c.getString(c.getColumnIndex("ZROWID"));
    abbr = c.getString(c.getColumnIndex("ZSABBR"));
    String lang = c.getString(c.getColumnIndex("ZSLANGUAGE"));
    language = lang.equals("en") ? 1 : 0;
    lyric = c.getString(c.getColumnIndex("ZSLYRIC"));
    String temp = c.getString(c.getColumnIndex("ZSMANUFACTURE"));
    manufacture = Integer.valueOf(temp);
    author = c.getString(c.getColumnIndex("ZSMETA"));
    name = c.getString(c.getColumnIndex("ZSNAME"));

  }

}




Java Source Code List

h.d.t.controller.AsyncTaskManager.java
h.d.t.data.KaraokeDB.java
h.d.t.dkaraoke.DKaraoke.java
h.d.t.model.Song.java