public static Display getDefaultDisplay() {
    WindowManager windowManager =
        (WindowManager) RuntimeEnvironment.application.getSystemService(Context.WINDOW_SERVICE);
    return windowManager.getDefaultDisplay();
  }
public static Display getDefaultDisplay() {
    WindowManager windowManager =
        (WindowManager) RuntimeEnvironment.application.getSystemService(Context.WINDOW_SERVICE);
    return windowManager.getDefaultDisplay();
  }
public static Display getDefaultDisplay ( ) { WindowManager windowManager = ( WindowManager ) RuntimeEnvironment . application . getSystemService ( Context . WINDOW_SERVICE ) ; return windowManager . getDefaultDisplay ( ) ; }
Returns the default display.

@return the default display
Returns the default display .