PDA

View Full Version : HELP - Tracking down - Email, Call and SMS ??




TheGame!
Nov 19, 2008, 12:42 AM
Hi Guys,

I am developing iphone app that has information to launch mail, call and sms.. so i think im going to use all of this link,
email - "mailto:"
call - "tel:"
sms - "sms:"

So all of this link will redirect to navitve app in iphone, the problem I have is how am I going to track down all of this 3 communication (email, call and sms) in my app ?? and save all data from my database for history/reports purposes?

Do you have any idea how this kind of functionality in iphone SDK??

I really need your help .. Thanks in advance..



dipaliP
Nov 19, 2008, 03:47 AM
Check openURL method of UIApplication.:)

NSString *tel = [NSString stringWithFormat:@"%@%@", @"tel://", telePhoneNum];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:tel]];

robbieduncan
Nov 19, 2008, 05:15 AM
So all of this link will redirect to navitve app in iphone, the problem I have is how am I going to track down all of this 3 communication (email, call and sms) in my app ?? and save all data from my database for history/reports purposes?

If you mean how can you get access to the users calls/messages/email then basically you can't.

TheGame!
Nov 20, 2008, 10:50 PM
Thanks for the reply guys.. I noticed on iphone os device i found sqlite databases of call history and sms. but with the mail I cant seem to locate it. so i think the only problem right now is how am i going to get the mail database? im confused with the folders in the iphone , there's yahoo, gmail etc..


Thanks for the help guys..