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 are Android Versions available?
Emulator: emulator: ERROR: Can't find 'Linux version ' string in kernel image file: Andr
What is Context?
How to reduce APK package size?
How to get a contact image using a phone number in android?
Symmetric vs Asymmetric Encryption in Android Server - RRutors
How to find Android Device UDID or unique ID?
INSTALL_FAILED_INVALID_APK: Split lib_slice_9_apk was defined multiple times. It is possible that th
Fix Android Emulator Kill Error When Running Your App
Fix Duplicate Files in APK Build.gradle Issue - RRutors
What is Android Fragments?
How do I check in SQLite whether a table exists?
How to Use Deprecated Handler() in Android - RRutors Guide
How to start a new activity on button click
Key Points to remember while develop the Android Application.
Check List for Generate Signed APK Android
How to stop EditText focus at Activity startup in Android?
Fix Error: Use JsonReader.setLenient(true) for Malformed JSON
FragmentPagerAdapter deprecated, Since API 27.1.0 FragmentPagerAdapter is deprecated.
How do I generate random numbers in Dart?
Fix Play Store Rejection Due to SMS Permission - RRutors
What is the Different Between val and var in Kotlin?
How to get screen size (width,height) in Android?
Decompile APK Files: How to Get Source Code - RRutors Guide
What is ANR? How to avoid and resolve it?
Fix Behavior Subclass BottomSheetBehavior Exception - RRutors
FCM Not Receiving Notifications in Android - RRutors
What is the difference between match_parent and fill_parent?
Permission denied for window type 2010 in Marshmallow device
Open PDF in Google Drive with Intent in Android - RRutors
How to check Android version?
What is Android?
Android Studio project R can't find
How to Get bitmap from drawable: Android
What is NetworkOnMainThread Exception?
How to get complete address from latitude and longitude?
What is ANR in android?
How to convert DP to Pixel and Pixel to Dp?
How to get an image resource by it's name in android?
How to Exit android app on back pressed?