Android Screen On And Off Make Which Method is called -


Which is called method when the Android screen is closed and at .
When the Android screen closes at paus and etc. and when the Android phone calls on to resume and etc. then I want to know Piece in activity or in particular for the screen and there is no special method for the closed purpose. onpause by onStop , which is invisible on onResume on / P>

The best way to find out the screen is the event

  "android.intent.action.ACTION_SCREEN_ON" and "Android.intent.action ACTION_SCREEN_OFF "  

The code must be registered for a broadcast receiver.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -