APN specification

by not-the-red-pill » Tue, 24 Jun 2008 14:18:37 GMT

Sponsored Links
 Is there a way to specify which data tunnel (APN) to use on a given


Other Threads

1. Cannot access SIM phonebook


I am trying to read and write contacts on the SIM phonebook.

First I tried writing a contact with GetContentResolver.insert(), 
passing RawContacts.CONTENT_URI as URI and ensuring the column 
RawContacts.ACCOUNT_NAME had the value "SIM", and adding 2 lines (1 for4 
name and 1 for phone) to Data.CONTENT_URI, linked by contact ID. This 
seemed to work: the contacts showed in the contact list with the SIM 
logo next to them, but they wouldn't survive a reboot... apparently 
that's just a placeholder in memory, which is synced with the real SIM 
at startup and at every change.

Then I tried reading the list of contacs on the SIM with

                Cursor cur = getContentResolver().query(

This fails with a NullPointerException on a real phone. On the emulator, it 
returns a Cursor with 0 lines. This sounds likely.
Strangely, accessing content://icc/fdn and content://icc/sdn both work, both on 
emulator and on phone.

Finally, I tried writing a contact with

                ContentValues values = new ContentValues();
                values.put("name","Name Of Contact");
                values.put("number", "+777777777");
                Uri uri = getContentResolver().insert(
                            , values)

This returns a null URI and no contact is inserted.

What's wrong there, and what's the right way of doing this?



2. Leather case

liat di www.zigma-acc.com om... banyak type dan modelnya tuh


Interested? See us at www.zigma-acc.com OR email at zigma....@gmail.com


3. Localization: no compression... huge APK...

4. After I added ACTION_SEND in my Activity intent-filter, how can I still use android build-in email app??

5. Launching HTC Desire HD & Desire Z

6. Can only see 8 of 13 apps in market console still

7. Problem with Zoom controls on camera preview