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;
Check List for Generate Signed APK Android
Open PDF in Google Drive with Intent in Android - RRutors
How do I generate random numbers in Dart?
How do i load image from drawable folder in Jetpack Compose?
How to validate email address in Android with Kotlin?
How to avoid multiple button click at same time in android?
Permission denied for window type 2010 in Marshmallow device
How can i comment inside xml file in android studio?
Hide/Disable soft keyboard on Activity launch: Android
How To Set Text Color Programmatically Android TextView?
How do I check in SQLite whether a table exists?
ERR_ACCESS_DENIED in Android Webview with sdk 30
How to find Android Device UDID or unique ID?
What is the Different Between val and var in Kotlin?
Explain Fragment Life Cycle
FCM Not Receiving Notifications in Android - RRutors
How to convert DP to Pixel and Pixel to Dp?
Decompile APK Files: How to Get Source Code - RRutors Guide
How to get a contact image using a phone number in android?
Add Jar/Library Files as Dependency in Android Studio
Android Studio project R can't find
FragmentPagerAdapter deprecated, Since API 27.1.0 FragmentPagerAdapter is deprecated.
What is Android Fragments?
How to save activity State in Android?
What are the notifications available in android?
How to check Android version?
What happens next when the device switches between portrait and landscape?
How to get an image resource by it's name in android?
What is Android?
What is Intent? What is the difference between an implicit intent and an explicit intent?
Fix Play Store Rejection Due to SMS Permission - RRutors
Set Activity to Fullscreen Mode in Android - RRutors
How to stop EditText focus at Activity startup in Android?
What is ANR? How to avoid and resolve it?
What is Application?
How to convert milli seconds to hours, minutes and seconds in Android?
How to Get bitmap from drawable: Android
Fix Duplicate Files in APK Build.gradle Issue - RRutors
Fix Error: Use JsonReader.setLenient(true) for Malformed JSON
How to Use Deprecated Handler() in Android - RRutors Guide