Back to project page FallingBall.
The source code is released under:
GNU General Public License
If you think the Android project FallingBall listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package edu.fmi.android.brickpong.utils; /*from www.j av a 2s.c om*/ import android.content.Context; import android.graphics.Point; import android.view.Display; import android.view.WindowManager; public class ScreenUtil { private ScreenUtil() { // blank } public static Point getScreenSize(final Context context) { final WindowManager windowManager = (WindowManager) context .getSystemService(Context.WINDOW_SERVICE); final Display display = windowManager.getDefaultDisplay(); final Point point = new Point(); display.getSize(point); return point; } }