You Are Here:

Community: Developer Discussion Boards

#1 Old [moved] Phone call history details - 2009-10-02, 13:34

Join Date: Sep 2009
Posts: 72
amit04.kumar
Offline
Regular Contributor
Hello All


Can we get phone call history details (i.e. incoming and outgoing call details with call duration, Inbound or Outbound call, is it in Roaming or not and date time) ? Please help me out.



Thanks,
Amit
Reply With Quote

#2 Old Re: Phone call history details - 2009-10-02, 13:38

Join Date: Mar 2006
Posts: 6,293
Location: Helsinki, Finland
kiran10182's Avatar
kiran10182
Offline
Forum Nokia Champion
Quote:
Originally Posted by amit04.kumar View Post
Hello All


Can we get phone call history details (i.e. incoming and outgoing call details with call duration, Inbound or Outbound call, is it in Roaming or not and date time) ? Please help me out.



Thanks,
Amit
First of all you are at the wrong section to ask such questions. I guess you are talking about Symbian C++ way. If yes then now onwards ask such questions on http://discussion.forum.nokia.com/fo...isplay.php?f=6

Now to the original problem, the answer is "Yes" for most of the requirements.

One very useful tip: Always search on Forum Nokia Wiki before asking a question. It has many good articles where you can find answers for your questions.


- Kiran
Reply With Quote

#3 Old Re: Phone call history details - 2009-10-02, 13:47

Join Date: Sep 2009
Posts: 72
amit04.kumar
Offline
Regular Contributor
Hi Kiran,

Thanks for your reply.
I have searched this on Nokia forum and wiki before posting the question. But didn't get.
Please help me out for getting the phone call history. how can I get the Phone call history? Is there any API ? This application is for C++.



Thanks,
Amit
Reply With Quote

#4 Old Re: Phone call history details - 2009-10-02, 13:51

Join Date: Mar 2006
Posts: 6,293
Location: Helsinki, Finland
kiran10182's Avatar
kiran10182
Offline
Forum Nokia Champion
Quote:
Originally Posted by amit04.kumar View Post
I have searched this on Nokia forum and wiki before posting the question. But didn't get.
Surprisingly I found this on Wiki: http://wiki.forum.nokia.com/index.php/Logs_Example


- Kiran
Reply With Quote

#5 Old Smile Re: Phone call history details - 2009-10-02, 13:54

Join Date: Sep 2009
Posts: 72
amit04.kumar
Offline
Regular Contributor
Hi

Thanks :)


Thanks,
Amit
Reply With Quote

#6 Old Re: Phone call history details - 2009-10-02, 13:58

Join Date: Mar 2006
Posts: 6,293
Location: Helsinki, Finland
kiran10182's Avatar
kiran10182
Offline
Forum Nokia Champion
Quote:
Originally Posted by amit04.kumar View Post
Hi

Thanks :)


Thanks,
Amit
And yes, the magic search string was "logs". You can try it out for other search results.


- Kiran
Reply With Quote

#7 Old Re: Phone call history details - 2009-11-03, 11:08

Join Date: Sep 2009
Posts: 72
amit04.kumar
Offline
Regular Contributor
Hi Kiran,

I have implemented the code which is in
http://wiki.forum.nokia.com/index.php/Logs_Example
for read call log.

But how to call the callreader method in my project ?

below is my code is for calling the callreader method

void CSMSreadContainerView::ConstructL()
{
// [[[ begin generated region: do not modify [Generated Code]
BaseConstructL( R_SMSREAD_CONTAINER_SMSREAD_CONTAINER_VIEW );

// ]]] end generated region [Generated Code]

// add your own initialization code here


iSmsHandler = CSmsHandler::NewL(); // SmsHandler

iCallLogReader = CCallLogReader::NewL(this);//for Call Log

}

And I try to read the log history in

void CSMSreadContainerView::HandleLogEventL(const CLogEvent& event)
{

CEikonEnv::Static()->InfoWinL(_L("event"),event.Number());

}
but didn't get any output.

Please help me for calling the callreader method.



Amit
Reply With Quote

#8 Old Re: Phone call history details - 2009-11-03, 11:16

Join Date: Mar 2006
Posts: 6,293
Location: Helsinki, Finland
kiran10182's Avatar
kiran10182
Offline
Forum Nokia Champion
This line will start processing log reader logic. iCallLogReader = CCallLogReader::NewL(this);//for Call Log

You may also need to override virtual void LogProcessed(TInt aError) = 0; method and see if you get any error in that callback.

Also debug your application and see where does flow go.


- Kiran
Reply With Quote

#9 Old Re: Phone call history details - 2009-11-03, 12:02

Join Date: Sep 2009
Posts: 72
amit04.kumar
Offline
Regular Contributor
Hello Kiran,

Thanks code is working fine.


Amit.
Reply With Quote

#10 Old Re: Phone call history details - 2009-11-04, 10:36

Join Date: Sep 2009
Posts: 72
amit04.kumar
Offline
Regular Contributor
Hi Kiran,

I want to retrieve the call duration and SMS text from logreader.


My code is:
void CSMSreadContainerView::HandleLogEventL(const CLogEvent& event)
{
//for call duration
HBufC* CallContent = HBufC::NewLC(10);
CallContent ->Des().Append(event.Duration());
CEikonEnv::Static()->InfoWinL(_L("Duration"),CallContent ->Des());

//SMS content
HBufC* SMSContent = HBufC::NewLC(400);
SMSContent->Des().Append(event.Data());
CEikonEnv::Static()->InfoWinL(_L("Duration"),SMSContent->Des());

}

But in above both case I got something like square box.
I didn't get call duration and SMS Text.

How can I retrieve the call duration, SMS Text and date ?

Please help me.


Amit
Reply With Quote

#11 Old Re: [moved] Phone call history details - 2009-11-04, 10:58

Join Date: Mar 2006
Posts: 6,293
Location: Helsinki, Finland
kiran10182's Avatar
kiran10182
Offline
Forum Nokia Champion
You can try Subject() instead of Data(). Also you will find other methods in CLogEvent class. You can try those. In any case, debug your code and see what does you get in your HBufC variables.

Open SDK help and look for CLogEvent.


- Kiran
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
[moved] TWO THINGS YOU PROBABLY NEVER KNEW YOUR MOBILE PHONE COULD DO shawnonmobile General Discussion 4 2008-10-30 17:16
Nokia Image Converter davidpurdie General Discussion 0 2004-02-18 16:31
Checking the status of a phone call Nokia_Archive General Symbian C++ 1 2002-05-29 14:41

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia