×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    May 2010
    Location
    Egypt
    Posts
    433

    Question How to get last event in log

    Hi all,

    I want to know the last event in log ; in other words , when I use this code below :

    Code:
    telephone.incoming_call() # waits for an incoming call
    telephone.call_state(handle_call)
    it calls the handle_call function when there is (Answering - Missed - Dialing - Ringing) events , and I need to know what is the last event (Missed - Out - In) , how can we do that ??

    many thanks in advance.

  2. #2
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: How to get last event in log

    For that you have to check the time of each entry, Missed ,out and in are three different entry in call log.

    All three are different entry,

    Suppose If I want to find the latest missed call then the below code is useful :

    Code:
    import logs
    
     num=logs.calls(mode='missed')[0]   #The dictionary for the latest missed call
     print num["number"]
    Like wise if Dialed number then put mode='out',,,,,,,and if incoming call then put mode='in'.

  3. #3
    Registered User
    Join Date
    May 2010
    Location
    Egypt
    Posts
    433

    Re: How to get last event in log

    Thanks for your reply,

    But is there any direct function to load all the Call events (in-out-fetch-missed) into list , then I can see what is the last event in this list ??

  4. #4
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: How to get last event in log

    When we are pressing Green button phone shows us the list of recent call activity.

    Make application which opens the latest list of call activity.

  5. #5
    Registered User
    Join Date
    Jul 2008
    Posts
    90

    Re: How to get last event in log

    Quote Originally Posted by ashraf fawzy View Post
    Thanks for your reply,

    But is there any direct function to load all the Call events (in-out-fetch-missed) into list , then I can see what is the last event in this list ??
    logs is that very list. Each item in the list has attrubute time - the time associated with the event as a unix timestamp. Obviously, you can compare the times of each item and see which one is the latest.

Similar Threads

  1. event log access?
    By belimawr in forum Symbian
    Replies: 1
    Last Post: 2006-09-22, 11:49
  2. catching log event
    By Bill_Murray in forum Symbian
    Replies: 2
    Last Post: 2006-02-15, 08:39
  3. Code Required:add event or delete event from log
    By SingerSinger in forum Symbian
    Replies: 2
    Last Post: 2005-12-11, 17:30
  4. Code Required:add event or delete event from log
    By SingerSinger in forum Mobile Java General
    Replies: 1
    Last Post: 2005-12-10, 21:12
  5. how to delete last log event?
    By tositpl in forum Symbian
    Replies: 2
    Last Post: 2004-03-31, 11:03

Posting Permissions

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