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;
What is Application?
Symmetric vs Asymmetric Encryption in Android Server - RRutors
How to convert DP to Pixel and Pixel to Dp?
What is the Different Between val and var in Kotlin?
How To Set Text Color Programmatically Android TextView?
Permission denied for window type 2010 in Marshmallow device
How to install/ uninstall apk by command line ADB
Explain Fragment Life Cycle
How can i comment inside xml file in android studio?
Invoke-customs are only supported starting with android 0 --min-api 26
How to save activity State in Android?
Check List for Generate Signed APK Android
How to get complete address from latitude and longitude?
What is "shared preferences" in Android ?
Add Jar/Library Files as Dependency in Android Studio
How to find Android Device UDID or unique ID?
How to Generate signed apk with android studio
What are Android Versions available?
How to get a contact image using a phone number in android?
How to Exit android app on back pressed?
What is ANR? How to avoid and resolve it?
Open PDF in Google Drive with Intent in Android - RRutors
How to stop EditText focus at Activity startup in Android?
Decompile APK Files: How to Get Source Code - RRutors Guide
How to Get bitmap from drawable: Android
Extract Date and Time from Long Type Variable - RRutors
How to start a new activity on button click
How to get screen size (width,height) in Android?
Fix Behavior Subclass BottomSheetBehavior Exception - RRutors
What is Android?
Fix Duplicate Files in APK Build.gradle Issue - RRutors
Key Points to remember while develop the Android Application.
Hide/Disable soft keyboard on Activity launch: Android
How do i load image from drawable folder in Jetpack Compose?
What is Context?
What is NetworkOnMainThread Exception?
How to validate email address in Android with Kotlin?
Set Activity to Fullscreen Mode in Android - RRutors
What is the difference between match_parent and fill_parent?
FragmentPagerAdapter deprecated, Since API 27.1.0 FragmentPagerAdapter is deprecated.