Ok I got this to work.  I created a new project and dumped in the .cs files 
from the Mono.Data.SQlite in that branch.  I then modified the native calls to 
those from libspatialite.so and added a method to load the spatialite extension.

I can now do simple queries and create my table as before but...

I am now stuck at the content provider interface.  I use a content provider for 
all of my data needs and am trying to figure out the best way to shove queries 
into ICursor.  Android seems to have a lot of different cursors and I don't 
know which one I should use (I'm also completely unfamiliar with 
Mono.Data.SQLite apart from the stuff I've done today).

Jeremy

________________________________
From: monodroid-boun...@lists.ximian.com [monodroid-boun...@lists.ximian.com] 
on behalf of Jeremy A. Kolb - ARA/NED [jk...@ara.com]
Sent: Saturday, December 15, 2012 10:33 PM
To: monodroid@lists.ximian.com
Subject: [mono-android] Need to compile Mono.Data.Sqlite

I need to compile the assembly to use with a custom ".so" of sqlite+spatialite. 
 I'm currently using Android's sqlite and simply using p/invoke tricks to load 
spatialite but it looks like JB compiled out the native functions I need.  So 
in addition to building spatialite into sqlite and enabling r-trees and a few 
other things I need to use Mono.Data.Sqlite and move all of my code over 
(luckily it's behind a content provider).

I'm having trouble building the assembly though.  Can I just build the assembly 
and not the rest of mono?  I'm assuming the branch I need is mono-2-10 from 
https://github.com/mono/mono/tree/mono-2-10/mcs/class/Mono.Data.Sqlite

Thanks,
Jeremy
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to