Indeed... i thought the same thing but for that you need 2 phones:
- one fixed on the door
- one on the wall pointing to the door
the one on the door will call you as soon as the door is opened and send a signal to the other phone on the wall to take a picture of the thief.
If i find an app that does that I'll let you know.
For now i'm happy with the one fixed on the door. I'm using it since several months and it works as a charm.