> Does anyone know if it is possible to have Android to start a Service
> when a phone call is dropped?

The public api does not distinguish between call drop and local or
remote hang up.

Sometimes the RIL java layer will leave a message about a call failure
cause in the radio log, sometimes it won't (as an OEM can disable it,
or return garbage information about the last fail cause since it is
not used.)

If you just want to do it for your phone do something like

adb shell logcat -v time -b radio > /sdcard/radiolog.txt

Make a call, wrap the phone in aluminum foil or put it in some place
where it will drop the call (the shielding of a microwave tends to
be effective.)  Take the phone out, kill the logcat, look at the log.

If you find a message that differs from a normal call you know what
to look for (implementing a listener for the call state change and
how to exec the logact from java and pattern match for the error
message is left as an exercise to the poster.)

I think there used to be an issue for it, but I can't find it now.

http://code.google.com/p/android/issues/detail?id=700

asked for too much.  I've added

http://code.google.com/p/android/issues/detail?id=15314

if you want to go star the issue so later versions of the API support
more detailed call status information.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to