I just want to know that suppose my App is running in background at that time i want to handle the key events of the phone in side my App. Like if app is running at that time if user will dial or receive any call my App will retrieve the Number.
I just want to know that in this case i have to handle the key event inside Appui class or the view class of last screen which has been formed.
I have the API to retrieve the number.
Is it necessary that App Should Run in the Back Ground?
Thanks & Regards