[android-developers] Re: How to update a Cursor

2009-04-24 Thread Mark Murphy
Meryl Silverburgh wrote: > Thank you. > > I have another question about cursor. > > I have inserted a ContentValue like this: > final ContentResolver cr = context.getContentResolver(); > > ContentValue values = new ContentValues(); > values.put("title", "new title"); > values.put("x", 10

[android-developers] Re: How to update a Cursor

2009-04-24 Thread Meryl Silverburgh
Thank you. I have another question about cursor. I have inserted a ContentValue like this: final ContentResolver cr = context.getContentResolver(); ContentValue values = new ContentValues(); values.put("title", "new title"); values.put("x", 10); Uri result = cr.insert(CONTENT_URI ,

[android-developers] Re: How to update a Cursor

2009-04-24 Thread Mark Murphy
Meryl Silverburgh wrote: > Hi, > > I call ContentResolver's query method to get a Cursor, and I would > like to update the title of that row to 'new title' > can you please tell me how to do it? > > final ContentResolver cr = context.getContentResolver(); > Cursor c = cr.query(MY_CONTENT_URI, >