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 Application?
Invoke-customs are only supported starting with android 0 --min-api 26
FCM Not Receiving Notifications in Android - RRutors
What is ANR? How to avoid and resolve it?
How to Generate signed apk with android studio
Fix Android Emulator Kill Error When Running Your App
How do I check in SQLite whether a table exists?
How to get screen size (width,height) in Android?
How to Get bitmap from drawable: Android
How to convert DP to Pixel and Pixel to Dp?
How to reduce APK package size?
How to Use Deprecated Handler() in Android - RRutors Guide
How to get an image resource by it's name in android?
Android Studio project R can't find
What is the Different Between val and var in Kotlin?
What is ANR in android?
What is Intent? What is the difference between an implicit intent and an explicit intent?
What are Android Versions available?
How to start a new activity on button click
Set Activity to Fullscreen Mode in Android - RRutors
How to avoid multiple button click at same time in android?
Fix Duplicate Files in APK Build.gradle Issue - RRutors
How to copy database from assets folder in android using kotlin
How do I generate random numbers in Dart?
What are the notifications available in android?
What is the difference between match_parent and fill_parent?
Add Jar/Library Files as Dependency in Android Studio
How to get a contact image using a phone number in android?
Check List for Generate Signed APK Android
How to convert milli seconds to hours, minutes and seconds in Android?
How do i load image from drawable folder in Jetpack Compose?
FragmentPagerAdapter deprecated, Since API 27.1.0 FragmentPagerAdapter is deprecated.
Open PDF in Google Drive with Intent in Android - RRutors
How to validate email address in Android with Kotlin?
How to save activity State in Android?
How to stop EditText focus at Activity startup in Android?
Symmetric vs Asymmetric Encryption in Android Server - RRutors
What happens next when the device switches between portrait and landscape?
How can i comment inside xml file in android studio?
Hide/Disable soft keyboard on Activity launch: Android