hi!
I have a content provider (content://fr.MyApp.MyContentProvider/
MyData)
And I can Navigate with a corsor.
But I need to have a record to another position...
So I try:
String[] ColumnName =  cursor.getColumnNames  ();
int i = 0;
int n=ColumnName.length;
while (i < n){
        ContentValues values = null;
        cursor.moveToPosition(Current_DataPosition);
        String a=cursor.getString(i);
        values.put(ColumnName[i],a);
context.getContentResolver().update(Uri.withAppendedPath(CONTENT_URI,New_DataPosition),values,null,
null);
}
I know that I can't do like that (becasue don't work) but how can I be
sure to not forget data if I d'ont know ColumnName and type?
How do I choose a position to insert my data?
thank's for reading me

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to