0

While the phone is ringing, how do I keep the screen off. Here is my code so far.

        public void onCallStateChanged(int state, String incomingNumber) {
        switch (state) {
        case TelephonyManager.CALL_STATE_RINGING:


            break;
        }
    }
Bidhan
  • 10,607
  • 3
  • 39
  • 50
Andrew Irwin
  • 691
  • 12
  • 40
  • Next time look deeply ;) - http://stackoverflow.com/questions/6756768/turn-off-screen-on-android - http://stackoverflow.com/questions/9561320/android-how-to-turn-screen-on-and-off-programmatically – sttimchenko Jun 06 '15 at 16:09
  • Thank you for your comment but I have already came across this article and could not really understand it or to use the code in that article to solve my problem. If you or someone else could make an example for me. I would be grateful. – Andrew Irwin Jun 06 '15 at 18:57

0 Answers0