Sorry for the late answer i had looked in other threads and do other stuff.

Iam getting the error before compiling in visual studio.

Here is a short example for it

-----------------------------------------------------------------------------
from = new string[] { "_id", "name", "picture" };
MatrixCursor mc = new MatrixCursor(from);
Model tmp;
for (int i = 0; i < 10; i++)
{
// line number 41
     tmp = new Model(i.ToString(), "Model " + i.ToString(), "background");
//line number 42 where the error is
     mc.AddRow(new string[] { tmp.ID, tmp.Name, tmp.Picture });
}
tmp = null;
-----------------------------------------------------------------------------
    public class Model {
        private string id, name, picture;

        public string ID { get { return id; } }
        public string Name { get { return name; } }
        public string Picture { get { return picture; } }

        public Model(string id, string name, string picture)
        {
            this.id = id;
            this.name = name;
            this.picture = picture;
        }
    }
-----------------------------------------------------------------------------
Error   3       The best overloaded method match for
'Android.Database.MatrixCursor.AddRow(Java.Lang.Object[])' has some invalid
arguments       C:\...\Visual Studio 2010\Projects
SimpleExamplesAndroid\SimpleExamplesAndroid\Tests\SimpleList\SimpleList.cs
42      17      SimpleExamplesAndroid

Error   4       Argument 1: cannot convert from 'string[]' to 
'Java.Lang.Object[]'      
C:\ ...\Tests\SimpleList\SimpleList.cs  42      27      SimpleExamplesAndroid

The first 2 errors are Warnings nothing to concern

-----
greetz Enrico

student from germany
--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Content-Provider-an-Matrix-Cursor-tp5095333p5122240.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
[email protected]

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

Reply via email to