1. Download our Official Android App: Forums for Android!

Support Saving contacts from call log

Discussion in 'Android Devices' started by edub, May 7, 2010.

  1. edub

    edub Newbie
    Thread Starter
    Rank:
    None
    Points:
    16
    Posts:
    15
    Joined:
    Mar 24, 2010

    Mar 24, 2010
    15
    1
    16
    Anyone know how? I called the same person 5 times before giving up.
     

    Advertisement

  2. mobil3gen

    mobil3gen Android Enthusiast
    Rank:
    None
    Points:
    58
    Posts:
    261
    Joined:
    Feb 22, 2010

    Feb 22, 2010
    261
    19
    58
    Student, Wireless Sales
    Clarkston, WA
    long press in the call log on a particular number will give you the option to save them as a contact.

    Just hit save to people or hit the "+" symbol to the right of the unknown number and you can "create a new contact"
     
    spacecoaster likes this.
  3. Shyam.KA

    Shyam.KA Lurker
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Jun 23, 2010

    Jun 23, 2010
    1
    0
    5
    Hi all,
    To save contacts from call Log through ASE is not going to be a challenging ask i guess.I have tried the following Steps.
    Step 1: Get the last dialed number from call log.
    Step 2: Save the number by using addContact() method from ContactsFacade.java

    //Code to get the dialed number from callLog.
    public String saveFromCallLog()
    {

    String lastDialedNumber =
    CALLLOG_EMPTY;
    String[] projection =
    new String[]{Calls.NUMBER};
    try

    {
    c = mService.getContentResolver().query(CONTENT_URI, projection, null, null, null);
    if(c != null)
    {
    c.moveToLast();
    lastDialedNumber =
    c.getString(0);
    }


    }
    catch(Exception e)
    {
    e.getMessage();
    }
    finally

    {
    c.close();
    }
    return lastDialedNumber;


    }
     
  4. Colchicine

    Colchicine Android Expert
    Rank:
    None
    Points:
    93
    Posts:
    768
    Joined:
    Apr 8, 2010

    OP: I suggest getting Call Confirm, which will eliminate calling people accidentally.
     
    spacecoaster likes this.
  5. Chandria

    Chandria Well-Known Member
    Rank:
    None
    Points:
    43
    Posts:
    103
    Joined:
    May 3, 2010

    May 3, 2010
    103
    26
    43
    Florida
    ^ this
     
  6. contagous

    contagous Android Expert
    Rank:
    None
    Points:
    93
    Posts:
    966
    Joined:
    May 21, 2010

    May 21, 2010
    966
    132
    93
    Gfx Design / Network Engineer
    Seattle WA
    Call confirm rocks
     

Share This Page

Loading...