Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display dialog on activity incoming call

I Have two question:

  1. It's possibile to display a dialog over the sceen incoming call (when the phone rings)?
  2. It's possibile to know when the phone rings for an incoming call? (Is there an action?)
like image 832
MimmoG Avatar asked Oct 11 '11 11:10

MimmoG


1 Answers

Yes you can do that. Follow this link:

Android: Taking complete control of phone(kiosk mode), is it possible? How?

It's possible to dispaly a dialog over the screen incoming call

When you get the event of the incoming call you need to startactivity() which you want to display but you need to do it after a little delay else the the default screen will override your screen. Once the default screen comes, you should call your screen. The delay will be between 500 - 1000 ms, this you need to test at your end.

like image 65
Vineet Shukla Avatar answered Sep 27 '22 17:09

Vineet Shukla