how i can recognize a incoming call and answer it?

thank you.