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:
-
Modify the app you want to display on the lock screen. In the
MainActivity
class of the app, callsetShowWhenLocked()
in theonCreate()
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); } }
-
On the Knox Guard console, go to Policy, then click Application installation.
-
Click Browse and select the app you want to display.
-
Click Save.
-
Back on the Policy page, click Lock screen > Advanced control.
-
Under Advanced support methods, select Make an application available.
-
Click Import. The app package name and signature fields are automatically filled.
-
Click Save.
The app is now visible on the lock screen of the device when locked with Knox Guard.
On this page
Is this page helpful?