I have a few questions lied on programming in Android:

1. How can I update Android phone contacts? I have this code that
doesn't work. the error message is "ERROR/AndroidRuntime(196):
java.lang.UnsupportedOperationException: Cannot update URL:
content://contacts/people/22/phones"

ContentValues values = new ContentValues();
                Uri uri = Uri.parse("content://contacts/people/" + _id);

                Uri phonesUri = Uri.withAppendedPath(uri,
                                Contacts.People.Phones.CONTENT_DIRECTORY);

                values.put(Contacts.Phones.TYPE, Phones.TYPE_MOBILE);
                values.put(Contacts.Phones.NUMBER, 
phones.get(Phones.TYPE_MOBILE));
                getContentResolver().update(phonesUri, values, null, null);
                values.clear();

2. How do I read IM (yahoo, sckype, gtalk) accounts from an Android
table? Where are this accounts saved?

3. I tried to send emails using this code:
http://davanum.wordpress.com/2007/12/22/android-send-email-via-gmail-actually-via-smtp/
but it does not work? The error is "ERROR/AndroidRuntime:
java.lang.VerifyError: javax.mail.internet.MimeMessage".

Please give me a solution to this problems.

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 [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to