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. Eclipse plugin bug

This is a new bug which seems to have cropped up as of a recent
version of the plugin.  I currently have 0.9.9.v201009221407-60953.
If I override the default LogCat font (default is Courier 10) it
switches to some other font, something sans serif.  I'm not sure which
font it is selecting (I can't eyeball it I'm afraid) but it definitely
is the same font at the same size no matter what I choose, not matter
how I override the default.  If I click the restore-default button, it
reverts to Courier 10, but if I attempt any manual font/size choice,
it always selects the same font and size, something approximately
Helvetica 12ish.

Does anyone know anything about this?

-- 

2. pointing sdram at udisk

I have found the terminal emulator on my Android 2.1 tablet. It does not
have sdram.

How do I point the sdram at the udisk ?

Many thanks in advance,

Aaron

-- 
.

3. packagemanager aidl files

4. EVO 4G - ROM & Myn Warm 2.2

5. screen brightness change

6. Creating iPhone style bubble list view in android

7. Udah ada yg coba froyo resmi utk Liquid ?