зеркало из https://github.com/mono/mail-archives.git
102 строки
3.6 KiB
HTML
102 строки
3.6 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [mono-android] SimpleCursorAdapter & 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 & 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 & 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 & 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 "_id" 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 & Managed Query
|
|
Dec 21, 2011; 11:27am — by Dragos Pop
|
|
><i> It seems that at "Java" level, the SimpleCursorAdapter needs a key field
|
|
</I>><i> called _id. See also
|
|
</I>><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 & 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>
|