5

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?)
Joachim Sauer
  • 302,674
  • 57
  • 556
  • 614
MimmoG
  • 631
  • 3
  • 14
  • 25

1 Answers1

5

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.

Community
  • 1
  • 1
Vineet Shukla
  • 23,865
  • 10
  • 55
  • 63
  • Thank you for your answer. But it's not possibile to display only a popup over the screen of the incoming call ? and...what action should I use to know if the phone rings? – MimmoG Oct 11 '11 at 11:47
  • I have shared a link. It is there. Yes you can show inside an activity with no view. – Vineet Shukla Oct 11 '11 at 12:14
  • @VineetShukla I'm trying to create the activity in a way that the answer buttons will still be visible (not full screen). is it possible? I would appreciate a reference to relevant text if so. Thank you! – Guy Jan 02 '12 at 07:21
  • answer buttons will still be visible ----- do you mean the native screens button? What exactly is your moto behind it? – Vineet Shukla Jan 02 '12 at 08:02
  • I wrote proof of concept application that does exactly it: https://github.com/inez/CustomIncomingCallScreen – Inez Feb 18 '14 at 20:27