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;
Invoke-customs are only supported starting with android 0 --min-api 26
How to find Android Device UDID or unique ID?
How do I check in SQLite whether a table exists?
ERR_ACCESS_DENIED in Android Webview with sdk 30
Fix Duplicate Files in APK Build.gradle Issue - RRutors
FCM Not Receiving Notifications in Android - RRutors
What is the Different Between val and var in Kotlin?
How To Set Text Color Programmatically Android TextView?
Android Studio project R can't find
What is Android?
Emulator: emulator: ERROR: Can't find 'Linux version ' string in kernel image file: Andr
How to start a new activity on button click
Symmetric vs Asymmetric Encryption in Android Server - RRutors
What are Android Versions available?
What is Intent? What is the difference between an implicit intent and an explicit intent?
How to get complete address from latitude and longitude?
How to get screen size (width,height) in Android?
Explain Fragment Life Cycle
How to get a contact image using a phone number in android?
Fix Behavior Subclass BottomSheetBehavior Exception - RRutors
How to copy database from assets folder in android using kotlin
How to Use Deprecated Handler() in Android - RRutors Guide
How to stop EditText focus at Activity startup in Android?
How to Get bitmap from drawable: Android
Check List for Generate Signed APK Android
How to Exit android app on back pressed?
What is the difference between match_parent and fill_parent?
How to install/ uninstall apk by command line ADB
Set Activity to Fullscreen Mode in Android - RRutors
How to convert milli seconds to hours, minutes and seconds in Android?
What is Context?
What is "shared preferences" in Android ?
How can i comment inside xml file in android studio?
Fix Play Store Rejection Due to SMS Permission - RRutors
What is Android Fragments?
Decompile APK Files: How to Get Source Code - RRutors Guide
Open PDF in Google Drive with Intent in Android - RRutors
FragmentPagerAdapter deprecated, Since API 27.1.0 FragmentPagerAdapter is deprecated.
How to Generate signed apk with android studio
How to check Android version?