Android Open Source - GroceryList Item






From Project

Back to project page GroceryList.

License

The source code is released under:

* Copyright (c) 2011, Josh Watts. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are m...

If you think the Android project GroceryList 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 net.sroz.grocerylist;
/*from   w ww .  j a v a  2s. c o m*/
import android.database.Cursor;

public class Item {
  public long id;
  public String text;
  public boolean checked;
    
  public Item(Cursor c) {
    id = c.getLong(c.getColumnIndex(Provider.KEY_ROWID));
    text = c.getString(c.getColumnIndex(Provider.KEY_TEXT));
    checked = (c.getInt(c.getColumnIndex(Provider.KEY_CHECKED)) == 1);
  }
}




Java Source Code List

net.sroz.grocerylist.CurrentListActivity.java
net.sroz.grocerylist.Item.java
net.sroz.grocerylist.List.java
net.sroz.grocerylist.Provider.java