2

I am trying to develop a alternate lock screen there for I need a intent filter which listens on the screen going off

but the problem is I don't know which attribute to use and which value to give

user1394184
  • 23
  • 2
  • 4

2 Answers2

2

Working on the same thing as well.

this is the question i posted yesterday, follow it maybe something will pop out.

By the way as i wrote in the question, the action you have to listen to are:

An important thing to know are these 2 flangs:

use them in your lockscreen activity to be able to have it when the screen is locked and to dismiss keyguards when they are not secure.

hope this help, there is a huge lack of documentation on android lockscreen customization.

Community
  • 1
  • 1
Mario Lenci
  • 10,422
  • 5
  • 39
  • 50
1

You need an InternFilter that listens to Intent.ACTION_SCREEN_OFF action.

IntentFilter screenFilter = new IntentFilter();
screenFilter.addAction(Intent.ACTION_SCREEN_OFF); 
reconditesea
  • 146
  • 5