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 do I generate random numbers in Dart?
What happens next when the device switches between portrait and landscape?
What are Android Versions available?
Key Points to remember while develop the Android Application.
How do I check in SQLite whether a table exists?
Invoke-customs are only supported starting with android 0 --min-api 26
Check List for Generate Signed APK Android
How to reduce APK package size?
What is ANR in android?
Android Studio project R can't find
FragmentPagerAdapter deprecated, Since API 27.1.0 FragmentPagerAdapter is deprecated.
How to check Android version?
How to validate email address in Android with Kotlin?
Fix Duplicate Files in APK Build.gradle Issue - RRutors
How to Generate signed apk with android studio
What is Application?
Fix Play Store Rejection Due to SMS Permission - RRutors
How to convert milli seconds to hours, minutes and seconds in Android?
What are the notifications available in android?
How to save activity State in Android?
How to get complete address from latitude and longitude?
How to start a new activity on button click
How do i load image from drawable folder in Jetpack Compose?
How can i comment inside xml file in android studio?
Permission denied for window type 2010 in Marshmallow device
How to copy database from assets folder in android using kotlin
How to avoid multiple button click at same time in android?
How to get screen size (width,height) in Android?
Set Activity to Fullscreen Mode in Android - RRutors
How to Use Deprecated Handler() in Android - RRutors Guide
What is ANR? How to avoid and resolve it?
What is Android Fragments?
What is Context?
Emulator: emulator: ERROR: Can't find 'Linux version ' string in kernel image file: Andr
How to convert DP to Pixel and Pixel to Dp?
How to install/ uninstall apk by command line ADB
What is the difference between match_parent and fill_parent?
Fix Android Emulator Kill Error When Running Your App
What is NetworkOnMainThread Exception?
Open PDF in Google Drive with Intent in Android - RRutors