#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2010
    Posts
    1
    Rep Power
    0

    Retrieve iPhone system log to collect phone usage


    Hi all,
    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?

    Any clues?

    Thanks in advance.

    -G-
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2007
    Posts
    33
    Rep Power
    8
    Originally Posted by gscalzo
    Hi all,
    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?

    Any clues?

    Thanks in advance.

    -G-
    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.

IMN logo majestic logo threadwatch logo seochat tools logo