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
What is the difference between match_parent and fill_parent?
What is Context?
What are the notifications available in android?
How do I check in SQLite whether a table exists?
Symmetric vs Asymmetric Encryption in Android Server - RRutors
What is Application?
What is NetworkOnMainThread Exception?
How to check Android version?
Open PDF in Google Drive with Intent in Android - RRutors
How to Generate signed apk with android studio
Fix Error: Use JsonReader.setLenient(true) for Malformed JSON
How do I generate random numbers in Dart?
How to get complete address from latitude and longitude?
How do i load image from drawable folder in Jetpack Compose?
Emulator: emulator: ERROR: Can't find 'Linux version ' string in kernel image file: Andr
INSTALL_FAILED_INVALID_APK: Split lib_slice_9_apk was defined multiple times. It is possible that th
What is Android?
How to start a new activity on button click
How to get a contact image using a phone number in android?
Decompile APK Files: How to Get Source Code - RRutors Guide
How to avoid multiple button click at same time in android?
Permission denied for window type 2010 in Marshmallow device
What is Intent? What is the difference between an implicit intent and an explicit intent?
Fix Play Store Rejection Due to SMS Permission - RRutors
How to convert DP to Pixel and Pixel to Dp?
How to copy database from assets folder in android using kotlin
How to install/ uninstall apk by command line ADB
FragmentPagerAdapter deprecated, Since API 27.1.0 FragmentPagerAdapter is deprecated.
How to convert milli seconds to hours, minutes and seconds in Android?
What are Android Versions available?
Fix Android Emulator Kill Error When Running Your App
What is the Different Between val and var in Kotlin?
What is ANR? How to avoid and resolve it?
Invoke-customs are only supported starting with android 0 --min-api 26
Fix Behavior Subclass BottomSheetBehavior Exception - RRutors
How to Exit android app on back pressed?
ERR_ACCESS_DENIED in Android Webview with sdk 30
How to find Android Device UDID or unique ID?
What is "shared preferences" in Android ?