Help me with Accessing Contact information

This is a discussion on Help me with Accessing Contact information within the Beginning Developers forums, part of the Android Development category; I am currently trying to write an app that accesses my contacts numbers. I did not know how to do it so instead I used: ...

Results 1 to 9 of 9
Like Tree1Likes
  • 1 Post By alostpacket

Thread: Help me with Accessing Contact information

  1. #1
    Android Lurker jashachik's Avatar
    Join Date
    Jun 2011
    Posts
    3

    Help me with Accessing Contact information

    I am currently trying to write an app that accesses my contacts numbers. I did not know how to do it so instead I used:
    Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse("tel:##########"));
    startActivity(intent);
    which brings up the dialer and inputs the 10 digit number into it. I would much rather not hard code it, and instead be able to find where it is saved within my phone. Any help is great! thank you!

  2. Android.net is the premier Android Forum. Registered users do not see these ads. .

  3. #2
    Super Moderator CR6's Avatar
    Join Date
    Jan 2011
    Location
    Idaho
    Posts
    1,589
    Thanked
    223 times
    Not sure if this is what you're looking for but I've got a shortcut on one of my homepages for that. Just long press on an empty spot on the homepage you'd like it on, when the menu of options comes up, click on "applications", scroll down and click on "contacts". If you're not happy with the stock icon, long press on it to change.


    Tapatalker!

  4. #3
    Android Lurker jashachik's Avatar
    Join Date
    Jun 2011
    Posts
    3
    I don't know if I worded my question right. I'm trying to find out if you can write the code like (Intent.ACTION_DIAL, contacts.getNumber() or something along those lines. If something like that is possible.

  5. #4
    Super Moderator/RS furbearingmammal's Avatar
    Join Date
    Jan 2011
    Location
    Two hours north of Syracuse, NY. Yes, there IS civilization that far north.
    Posts
    3,983
    Thanked
    197 times
    Twitter
    FurryVarmint
    I think you're asking a development question. If so, as in you are trying to become a developer, then I'll move this thread to the appropriate location so you get the right visibility.
    DO NOT WRITE IN THIS SPACE
    THIS SPACE INTENTIONALLY LEFT BLANK

  6. #5
    Super Moderator CR6's Avatar
    Join Date
    Jan 2011
    Location
    Idaho
    Posts
    1,589
    Thanked
    223 times
    I'm sorry bud....i misunderstood your question. Sorry, i can't help with this one but hopefully one of our many knowledgeable members can.
    Good luck and let us know how it turns out!



    Tapatalker!

  7. #6
    Android Lurker jashachik's Avatar
    Join Date
    Jun 2011
    Posts
    3
    Yes, that is exactly the information I'm trying to get. Thank you very much.

  8. #7
    Super Moderator/RS furbearingmammal's Avatar
    Join Date
    Jan 2011
    Location
    Two hours north of Syracuse, NY. Yes, there IS civilization that far north.
    Posts
    3,983
    Thanked
    197 times
    Twitter
    FurryVarmint
    Moved to proper forum.
    DO NOT WRITE IN THIS SPACE
    THIS SPACE INTENTIONALLY LEFT BLANK

  9. #8
    Super Moderator CR6's Avatar
    Join Date
    Jan 2011
    Location
    Idaho
    Posts
    1,589
    Thanked
    223 times
    Thanks fur man!


    Tapatalker!

  10. #9
    App Developer alostpacket's Avatar
    Join Date
    Jan 2011
    Location
    NY
    Posts
    240
    Thanked
    32 times
    Twitter
    alostpacket
    Depends on your phone, but contact info is stored in the contacts content provider. This is VERY, VERY different before 2.0 and after.

    Before 2.0:
    Contacts | Android Developers

    After and including 2.0:
    ContactsContract | Android Developers

    The first thing you may want to read up on (if you dont already know) is how to access data from a ContentProvider
    Content Providers | Android Developers

    NOTE: the examples they use in the Android documentation for content providers show the OLD Contacts API (pre-eclair/2.0)
    Last edited by alostpacket; 06-14-2011 at 03:34 AM.
    furbearingmammal likes this.

Remove Ads

http://www.scramblerducati.org/

Sponsored Links

Posting Permissions

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

Similar Threads

  1. Information about Motorola Phones
    By SLAG IT! in forum Off-Topic Forum
    Replies: 4
    Last Post: 05-08-2011, 12:50 PM
  2. Transferring Information from Droid to Computer
    By Montymo in forum Android Forum
    Replies: 4
    Last Post: 01-17-2011, 05:46 PM
  3. Samsung Vibrant Specs and Information
    By TMODroids User in forum Samsung Vibrant
    Replies: 0
    Last Post: 06-27-2010, 04:15 PM

Search tags for this page

action dial contact

,
android action dial contact intent
,
contact information on droid
,
how to read contact informations in android developing
,
intent.action dial contacts
Click on a term to search our sites for related topics.
Android Forum