Methods Summary |
---|
public android.view.Display | getDefaultDisplay()
WindowManager windowManager = (WindowManager)
mContext.getSystemService(Service.WINDOW_SERVICE);
return windowManager.getDefaultDisplay();
|
public int | getRotation()
return getDefaultDisplay().getRotation();
|
public long | getSystemLongPressTime()
return ViewConfiguration.getLongPressTimeout();
|
public boolean | isScreenOn()
PowerManager pm = (PowerManager)
mContext.getSystemService(Service.POWER_SERVICE);
return pm.isScreenOn();
|