Problems with porting code from sdk m5 to 1.0

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

Problems with porting code from sdk m5 to 1.0

Postby gabrielknight » Tue Dec 09, 2008 10:09 am

Goodmorning,

I have this code that compiles in m5-rc15:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2.  
  3.  
  4. Cursor c = getContentResolver().query(Contacts.Phones.CONTENT_URI, projection, "type="+Contacts.Phones.TYPE_MOBILE+" AND person="+person_id, null, null);
  5.  
  6.                                 if (c.next()){
  7.  
  8.                                         c.updateString(c.getColumnIndex(Contacts.Phones.NUMBER), mobile_s);
  9.  
  10.                                         c.commitUpdates();
  11.  
  12.                                 }
  13.  
  14.  
  15.  
  16.  
Parsed in 0.067 seconds, using GeSHi 1.0.8.4


Now I need to port it on sdk 1.0r1, but the methods updateString and commitUpdates are been removed from this last one. Can anyone suggest me a workaround?

Thanks for the help.
gabrielknight
Once Poster
Once Poster
 
Posts: 1
Joined: Tue Dec 09, 2008 10:01 am

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 6 guests