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;
Set Activity to Fullscreen Mode in Android - RRutors
How to validate email address in Android with Kotlin?
What is the difference between match_parent and fill_parent?
Emulator: emulator: ERROR: Can't find 'Linux version ' string in kernel image file: Andr
Fix Duplicate Files in APK Build.gradle Issue - RRutors
How to get complete address from latitude and longitude?
How do i load image from drawable folder in Jetpack Compose?
What is Context?
How to get screen size (width,height) in Android?
What are Android Versions available?
What is "shared preferences" in Android ?
Android Studio project R can't find
What are the notifications available in android?
What is Application?
How to check Android version?
Fix Behavior Subclass BottomSheetBehavior Exception - RRutors
How to copy database from assets folder in android using kotlin
How to Get bitmap from drawable: Android
Fix Error: Use JsonReader.setLenient(true) for Malformed JSON
Fix Android Emulator Kill Error When Running Your App
Key Points to remember while develop the Android Application.
Decompile APK Files: How to Get Source Code - RRutors Guide
What happens next when the device switches between portrait and landscape?
What is Android Fragments?
How to get a contact image using a phone number in android?
Extract Date and Time from Long Type Variable - RRutors
Explain Fragment Life Cycle
FCM Not Receiving Notifications in Android - RRutors
How to convert milli seconds to hours, minutes and seconds in Android?
How to start a new activity on button click
What is ANR in android?
How to stop EditText focus at Activity startup in Android?
What is Intent? What is the difference between an implicit intent and an explicit intent?
What is Android?
How to Exit android app on back pressed?
Check List for Generate Signed APK Android
What is the Different Between val and var in Kotlin?
Fix Play Store Rejection Due to SMS Permission - RRutors
How to Generate signed apk with android studio
How to find Android Device UDID or unique ID?