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;
How to avoid multiple button click at same time in android?
How do I check in SQLite whether a table exists?
Fix Play Store Rejection Due to SMS Permission - RRutors
Check List for Generate Signed APK Android
Android Studio project R can't find
How to Use Deprecated Handler() in Android - RRutors Guide
How to get complete address from latitude and longitude?
How to Generate signed apk with android studio
What is Context?
How to get an image resource by it's name in android?
Fix Error: Use JsonReader.setLenient(true) for Malformed JSON
How to convert DP to Pixel and Pixel to Dp?
What is the difference between match_parent and fill_parent?
How to check Android version?
What is Intent? What is the difference between an implicit intent and an explicit intent?
How to get a contact image using a phone number in android?
Key Points to remember while develop the Android Application.
How to validate email address in Android with Kotlin?
Symmetric vs Asymmetric Encryption in Android Server - RRutors
FragmentPagerAdapter deprecated, Since API 27.1.0 FragmentPagerAdapter is deprecated.
What is ANR? How to avoid and resolve it?
How to Get bitmap from drawable: Android
What is Android?
What is the Different Between val and var in Kotlin?
Explain Fragment Life Cycle
How to stop EditText focus at Activity startup in Android?
What is "shared preferences" in Android ?
Decompile APK Files: How to Get Source Code - RRutors Guide
How to copy database from assets folder in android using kotlin
What is Android Fragments?
How to get screen size (width,height) in Android?
How do I generate random numbers in Dart?
What is ANR in android?
ERR_ACCESS_DENIED in Android Webview with sdk 30
Emulator: emulator: ERROR: Can't find 'Linux version ' string in kernel image file: Andr
How to save activity State in Android?
What is NetworkOnMainThread Exception?
What are the notifications available in android?
How do i load image from drawable folder in Jetpack Compose?
Extract Date and Time from Long Type Variable - RRutors