Android Community
Results 1 to 2 of 2

Thread: Examples for creating contacts in Android 2.0?

  1. #1
    Join Date
    Oct 2008
    Posts
    364

    Default Examples for creating contacts in Android 2.0?


    Hey everyone... this whole ContactsContract thing is such a mess! My apps have an option to easily create a contact, but it no longer works in API level 5 using "Contacts.People.createPersonInMyContactsGroup ".

    Does anyone have an example of doing the same using the new method(ContactsContract) ?Google's documentation is pretty bad.

    Also, am I crazy or did they remove "send calls directly to voicemail" from Android 2.0?

    Anyway, thanks in advance..

  2. #2
    Join Date
    Oct 2008
    Posts
    364

    Default Re: Examples for creating contacts in Android 2.0?


    Answering part 1 of my own question.. it was actually quite easy and probably would have worked almost exactly the same way in <2.0 (though before I was doing it without a dialog.. this is better anyway).. in case anyone comes along from google..

    Intent i = new Intent(Intent.ACTION_INSERT_OR_EDIT);
    i.putExtra(ContactsContract.Intents.Insert.NAME,"J ohn Johnson");
    ...
    i.setType(ContactsContract.Contacts.CONTENT_ITEM_T YPE);
    startActivity(i);

    Now,.. as for the ability to send calls directly to voicemails..? Anyone have any insight?

Similar Threads

  1. Replies: 19
    Last Post: 04-26-2011, 01:51 AM
  2. Creating skins
    By Treello in forum Developers Guild
    Replies: 1
    Last Post: 02-13-2010, 01:05 AM
  3. Good examples of different types of games
    By raukodur in forum All About Andorid Software
    Replies: 40
    Last Post: 03-09-2009, 04:18 AM
  4. Replies: 11
    Last Post: 12-16-2008, 11:16 PM
  5. Creating applications
    By Draffodx in forum All About Andorid Software
    Replies: 12
    Last Post: 11-12-2008, 02:00 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •