--values.put( "name", "aaaa" ); replace as :
--values.put( "tag", "aaaa" ); Good Luck! 2009/5/14 蓝思中 <lan.sizh...@gmail.com> > > Hi guys, I am trying to store a contact in the SIM card, but I found > nothing for it in the G1 phone. Then, I assumed that it may be because G1's > application doesn't use the API for that storage, so I tried the following > code, > > ContentValues values = new ContentValues(); >> > values.put( "name", "aaaa" ); >> > values.put( "number", "10086" ); >> > getContentResolver().insert( Uri.parse("content://sim/adn"), values >> ); >> > > it just failed, doing nothing. What is wrong? how can I make it to SIM > card? > Thank you. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---