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 Intent? What is the difference between an implicit intent and an explicit intent?
INSTALL_FAILED_INVALID_APK: Split lib_slice_9_apk was defined multiple times. It is possible that th
How To Set Text Color Programmatically Android TextView?
What is ANR in android?
Check List for Generate Signed APK Android
Emulator: emulator: ERROR: Can't find 'Linux version ' string in kernel image file: Andr
How to get a contact image using a phone number in android?
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?
What is ANR? How to avoid and resolve it?
How to save activity State in Android?
What is "shared preferences" in Android ?
What is Application?
Symmetric vs Asymmetric Encryption in Android Server - RRutors
Add Jar/Library Files as Dependency in Android Studio
How to Exit android app on back pressed?
How to get screen size (width,height) in Android?
Invoke-customs are only supported starting with android 0 --min-api 26
How to start a new activity on button click
FragmentPagerAdapter deprecated, Since API 27.1.0 FragmentPagerAdapter is deprecated.
Extract Date and Time from Long Type Variable - RRutors
How to validate email address in Android with Kotlin?
Set Activity to Fullscreen Mode in Android - RRutors
What is the Different Between val and var in Kotlin?
Permission denied for window type 2010 in Marshmallow device
How to stop EditText focus at Activity startup in Android?
How to check Android version?
How to find Android Device UDID or unique ID?
ERR_ACCESS_DENIED in Android Webview with sdk 30
How to convert milli seconds to hours, minutes and seconds in Android?
Fix Play Store Rejection Due to SMS Permission - RRutors
How to install/ uninstall apk by command line ADB
How do i load image from drawable folder in Jetpack Compose?
How to get complete address from latitude and longitude?
What is NetworkOnMainThread Exception?
How to convert DP to Pixel and Pixel to Dp?
What is Android?
Open PDF in Google Drive with Intent in Android - RRutors
What is the difference between match_parent and fill_parent?