1

I have made my own lock screen using the below link: https://stackoverflow.com/a/28603790/1083093 .

public class LockScreenReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(final Context context, Intent intent) {

     // My Implementation ---------- >

   }

}

What I am trying to achieve: I want to hide the top task bar and bottom navigation bar in android


What i tried:

  1. I tried to use Immersive mode from this post but since getWindow() is not accessable there & since it is not an activity, I am not able to do that.
  2. I also tried casting from Activity activity = (Activity) context; but it dosen't work .

How to achieve this ?

Community
  • 1
  • 1
Devrath
  • 42,072
  • 54
  • 195
  • 297

0 Answers0