Back to project page GroceryList.
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.
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); } }