June 28th, 2010, 05:54 AM
Retrieve iPhone system log to collect phone usage
I wonder if there is an official way (no jailbreak) to know when a system application (call, sms, ipod etc) has been started and closed.
My aim is to produce an application which collects basic usage of the iPhone and rearrange it in a daily report (how many hours calling, how many hours listening to music, etc).
For doing this, it needs intercept the life cycle of an app in same way: is this possible?
Thanks in advance.
I doubt it. Even in the new SDK, the app you have running is only told when it is going into the background. It doesn't know /why/ it's being put there, no arguments have been passed say "Hey, the iPod App just launched." Your app would have to run outside of it's sandbox to know which apps are being launched, and note the times. Definitely sounds like a Jailbroken app to me.
Originally Posted by gscalzo