I am developing an application in which i want to keep a track of that when an outgoing call ends.For example,If a mobile phone user dials a call and then i want to run a programming code when the call is ended.I want this only for outgoing calls.
You can do it with telephony api in android .see this link its have an example for it.
http://mobisys.in/blog/2011/09/is-your-call-ended-on-android-phone/