Back to top

How to display app icons on the lock screen?

Last updated July 26th, 2023

Categories:

Environment

  • Knox Guard

Overview

Knox Guard allows customers to install apps and display their icons on the lock screen of a device. This article provides information on how to configure an app so that its icon is shown on a device’s lock screen when it’s locked with Knox Guard.

How to display an app icon on the lock screen

To display an app icon:

  1. Modify the app you want to display on the lock screen. In the MainActivity class of the app, call setShowWhenLocked() in the onCreate() callback method.

    For example:

    public class MainActivity extends AppCompatActivity {
        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_main);
            setShowWhenLocked(true);
        }
    }
    
  2. On the Knox Guard console, go to Policy, then click Application installation.

  3. Click Browse and select the app you want to display.

    Application installation upload window

  4. Click Save.

  5. Back on the Policy page, click Lock screen > Advanced control.

  6. Under Advanced support methods, select Make an application available.

  7. Click Import. The app package name and signature fields are automatically filled.

    Application advanced support methods

  8. Click Save.

The app is now visible on the lock screen of the device when locked with Knox Guard.

Is this page helpful?