WindowManager
is a class in the Android SDK. Its fully qualified name is android.view.WindowManager
. The WindowManager.LayoutParams
is a nested class of WindowsManager
and its fully qualified name is android.view.WindowManager.LayoutParams
You can either specify the fully qualified name when you want to use it.
getWindow().addFlags(android.view.WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
or you can import its outer class
import android.view.WindowManager;
and use it directly
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);