[mono-android] Sqlite error on Android version 4.1/4.2/4.3

2013-12-27 Thread Steve Sharrock
We have been running an application for a few years with no trouble. Now we
find that if our customers have a phone or tablet with the versions
4.1/4.2/4.3, we get an Exception (object reference not set to an instance of
an object) from within an Insert SQL command using
SqliteCommand.ExecuteNonQuery. The command is constructed properly as seen
both from debugging and the fact that the app runs fine on hundreds of other
devices with lower version number. Also, the error occurs randomly on
different tables and different rows while trying to save the same data to
the database.

 

We're running Xamarin 4.6 with VS 2010. Is 4.10 likely to change anything?

 

Thanks for any help,

 

Steve

___
Monodroid mailing list
Monodroid@lists.ximian.com

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


[mono-android] Filter ListView Android (C#)

2013-12-27 Thread alin
Hi,
How To use this code in Monodroid(C#)?
OR
How To filter listview that is populate via SimpleCursorAdapter.


adapter.setFilterQueryProvider(new FilterQueryProvider() {
public Cursor runQuery(CharSequence constraint) {
return
getContentResolver().query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, 
new String[] {Phone._ID, Phone.DISPLAY_NAME,
Phone.NUMBER}, 
Phone.DISPLAY_NAME + " LIKE '" + constraint + "%'", 
null, null);
}
});





--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Filter-ListView-Android-C-tp5713650.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

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