With the Display object we can get the Screen width and height Display display = getWindowManager().getDefaultDisplay(); But getWidth(),getHeight() are deprecated from Android API Level 13 and introduced getSize() method Display display = getWindowManager().getDefaultDisplay();
int width = display.getWidth();
int height = display.getHeight();
Point size = new Point();
display.getSize(size);
int width = size.x;
int height = size.y;
How to get a contact image using a phone number in android?
How To Set Text Color Programmatically Android TextView?
Set Activity to Fullscreen Mode in Android - RRutors
FragmentPagerAdapter deprecated, Since API 27.1.0 FragmentPagerAdapter is deprecated.
What is Android?
Fix Android Emulator Kill Error When Running Your App
Explain Fragment Life Cycle
Add Jar/Library Files as Dependency in Android Studio
Symmetric vs Asymmetric Encryption in Android Server - RRutors
Extract Date and Time from Long Type Variable - RRutors
Fix Play Store Rejection Due to SMS Permission - RRutors
Permission denied for window type 2010 in Marshmallow device
Fix Duplicate Files in APK Build.gradle Issue - RRutors
How to find Android Device UDID or unique ID?
Fix Behavior Subclass BottomSheetBehavior Exception - RRutors
What is the difference between match_parent and fill_parent?
How to get an image resource by it's name in android?
What is NetworkOnMainThread Exception?
What is ANR in android?
How to start a new activity on button click
Open PDF in Google Drive with Intent in Android - RRutors
What are Android Versions available?
How to Exit android app on back pressed?
Check List for Generate Signed APK Android
How to stop EditText focus at Activity startup in Android?
How to get screen size (width,height) in Android?
What are the notifications available in android?
How to reduce APK package size?
What is ANR? How to avoid and resolve it?
Emulator: emulator: ERROR: Can't find 'Linux version ' string in kernel image file: Andr
How do I generate random numbers in Dart?
How to avoid multiple button click at same time in android?
How to validate email address in Android with Kotlin?
What is Android Fragments?
What is Application?
Invoke-customs are only supported starting with android 0 --min-api 26
How to Generate signed apk with android studio
How to convert DP to Pixel and Pixel to Dp?
How to convert milli seconds to hours, minutes and seconds in Android?
What is Context?