What will be the equivalent of the pre-API method of getSize () method? In particular, I need something that will work with Gingerbread.
Context context = getActivity();
Display display = ((WindowManager) context.getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();
Point size = new Point();
display.getSize(size);
source
share