Possible Duplicate:
Android : why PhoneCallListener still alive after activity finish?
i'm making a call and using a phone call listener to restart activity when phone state back to IDLE . but after i finish the activity , phone call listener still running, therefore when user make own call and hang-up , my activity bring up again !!
Use LISTEN_NONE
as parameter to listen
method to stop listening for updates.
来源:https://stackoverflow.com/questions/11667209/android-how-to-stop-listening-a-phonecalllistener