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;
INSTALL_FAILED_INVALID_APK: Split lib_slice_9_apk was defined multiple times. It is possible that th
What happens next when the device switches between portrait and landscape?
Fix Duplicate Files in APK Build.gradle Issue - RRutors
How to convert DP to Pixel and Pixel to Dp?
ERR_ACCESS_DENIED in Android Webview with sdk 30
What are the notifications available in android?
Add Jar/Library Files as Dependency in Android Studio
Symmetric vs Asymmetric Encryption in Android Server - RRutors
Emulator: emulator: ERROR: Can't find 'Linux version ' string in kernel image file: Andr
How to Generate signed apk with android studio
Fix Error: Use JsonReader.setLenient(true) for Malformed JSON
How to convert milli seconds to hours, minutes and seconds in Android?
How to get an image resource by it's name in android?
Open PDF in Google Drive with Intent in Android - RRutors
Key Points to remember while develop the Android Application.
Decompile APK Files: How to Get Source Code - RRutors Guide
What is Android Fragments?
Invoke-customs are only supported starting with android 0 --min-api 26
Fix Android Emulator Kill Error When Running Your App
How to Use Deprecated Handler() in Android - RRutors Guide
How To Set Text Color Programmatically Android TextView?
What is ANR in android?
Fix Play Store Rejection Due to SMS Permission - RRutors
What is Android?
What is Context?
How to check Android version?
How to validate email address in Android with Kotlin?
How do i load image from drawable folder in Jetpack Compose?
How to find Android Device UDID or unique ID?
FragmentPagerAdapter deprecated, Since API 27.1.0 FragmentPagerAdapter is deprecated.
How to install/ uninstall apk by command line ADB
How do I generate random numbers in Dart?
Extract Date and Time from Long Type Variable - RRutors
What is the Different Between val and var in Kotlin?
What are Android Versions available?
What is NetworkOnMainThread Exception?
How do I check in SQLite whether a table exists?
How to reduce APK package size?
How to get complete address from latitude and longitude?
How can i comment inside xml file in android studio?