Hi friends this is my first post and request
I normally use a wired headphone came with phone for talking, i want to know is there any application (java, pkg etc...) which can periodically scan for headphone connected or not, as application detects headphone is disconnected he can lock the phone and generate a continuous non stoppable sound ?
Background of the imaginary application is, an app which will run in background as blacklist app, and keep detecting of headphone presence as some one try to steal the phone (as i think theft never going to unhook headphone from my shirt

he will unplug the wire and take my phone) in this case app will lock the phone and makes sound, so we can catch theft immediately.
i need such application, at my town there is lot thefts, such application present ? if not any developer/moder can u do it ?
Thank You for taking time to read, Try to think for this concept.
Well i am a ROKR E6 user