how can the contact be writen to SIM card?

by 钃濇€濅腑 » Thu, 14 May 2009 23:55:56 GMT


Sponsored Links
 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.

--~--~---------~--~----~------------~-------~--~----~



how can the contact be writen to SIM card?

by zhanglei » Tue, 19 May 2009 01:32:27 GMT


 I was told that I can use telephony to create SIM contacts, but I don
know how to do. who can help me?

Thanks in advance for your kind help.

 

  _____  

From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of €
Sent: 2009418:25
To: android-developers@googlegroups.com
Subject: [!! SPAM] [android-developers] how can the contact be writen to SIM
card?

 


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.




--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


how can the contact be writen to SIM card?

by Water E » Wed, 15 Jul 2009 00:26:48 GMT


 --values.put( "name", "aaaa" );

replace as :

--values.put( "tag", "aaaa" );
Good Luck!

2009/5/14 € <lan.sizh...@gmail.com>


--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Gallery Displays Every Image File

LG Optimus M v2.2.1
I Have two of them, both with very similar set-ups, including
applications but my wife's Gallery app displays every image file
that's on her phone or sd card, including fonts. This is her second LG
Optimus M in 2 months and the first one did this as well but we
insisted on the replacement for a different issue.

-- 

2. GroupActivity

GroupActivity

-- 

3. How to remove the icon when this app has been set disabled.

4. How to check network is present or not

5. How can i know current foreground activity(not from service)?

6. Regarding Page Curl...

7. Call Tracing on Android