mail-archives/monodroid/2011-December/008008.html

102 строки
3.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [mono-android] SimpleCursorAdapter &amp; Managed Query
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:monodroid%40lists.ximian.com?Subject=%5Bmono-android%5D%20SimpleCursorAdapter%20%26%20Managed%20Query&In-Reply-To=1324463271229-5091487.post%40n5.nabble.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="008017.html">
<LINK REL="Next" HREF="008010.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[mono-android] SimpleCursorAdapter &amp; Managed Query</H1>
<B>caruso</B>
<A HREF="mailto:monodroid%40lists.ximian.com?Subject=%5Bmono-android%5D%20SimpleCursorAdapter%20%26%20Managed%20Query&In-Reply-To=1324463271229-5091487.post%40n5.nabble.com"
TITLE="[mono-android] SimpleCursorAdapter &amp; Managed Query">djtails at gmx.net
</A><BR>
<I>Wed Dec 21 05:54:26 EST 2011</I>
<P><UL>
<LI>Previous message: <A HREF="008017.html">[mono-android] Free version: Emulator only? ... Bye bye
</A></li>
<LI>Next message: <A HREF="008010.html">[mono-android] SimpleCursorAdapter &amp; Managed Query
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#8008">[ date ]</a>
<a href="thread.html#8008">[ thread ]</a>
<a href="subject.html#8008">[ subject ]</a>
<a href="author.html#8008">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Simple Cursor Adapter inherits the CursorAdapter where the docs the following
sentences say:
Class Overview
Adapter that exposes data from a Cursor to a ListView widget. The Cursor
must include a column named &quot;_id&quot; or this class will not work.
<A HREF="http://developer.android.com/reference/android/widget/CursorAdapter.html">http://developer.android.com/reference/android/widget/CursorAdapter.html</A>
so you can use:
String CREATED - The date the item created, in milliseconds since the epoch.
String DATE - The date the item was last visited, in milliseconds since the
epoch.
I haven't tested it but it is worth a try.
Enrico
Re: SimpleCursorAdapter &amp; Managed Query
Dec 21, 2011; 11:27am &#8212; by Dragos Pop
&gt;<i> It seems that at &quot;Java&quot; level, the SimpleCursorAdapter needs a key field
</I>&gt;<i> called _id. See also
</I>&gt;<i> <A HREF="http://stackoverflow.com/questions/5825020/android-column-id-does-not-exist-problem">http://stackoverflow.com/questions/5825020/android-column-id-does-not-exist-problem</A>
</I>
--
View this message in context: <A HREF="http://mono-for-android.1047100.n5.nabble.com/SimpleCursorAdapter-Managed-Query-tp5063665p5091540.html">http://mono-for-android.1047100.n5.nabble.com/SimpleCursorAdapter-Managed-Query-tp5063665p5091540.html</A>
Sent from the Mono for Android mailing list archive at Nabble.com.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="008017.html">[mono-android] Free version: Emulator only? ... Bye bye
</A></li>
<LI>Next message: <A HREF="008010.html">[mono-android] SimpleCursorAdapter &amp; Managed Query
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#8008">[ date ]</a>
<a href="thread.html#8008">[ thread ]</a>
<a href="subject.html#8008">[ subject ]</a>
<a href="author.html#8008">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/monodroid">More information about the Monodroid
mailing list</a><br>
</body></html>