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?
How to Get bitmap from drawable: Android
Is There A Way To Get The Source Code From An APK File? (or) How to decompile apk?
How to reduce APK package size?
How to validate email address in Android with Kotlin?
ERR_ACCESS_DENIED in Android Webview with sdk 30
What are Android Versions available?
ERROR Android emulator gets killed when I try to run my application and choose an emulator it ret
Android FCM not receiving notifications when app is removed from background
How to avoid multiple button click at same time in android?
How to get complete address from latitude and longitude?
How to convert DP to Pixel and Pixel to Dp?
FragmentPagerAdapter deprecated, Since API 27.1.0 FragmentPagerAdapter is deprecated.
Could not inflate Behavior subclass android.support.design.widget. BottomSheetBehavior How resolve
How To Set Text Color Programmatically Android TextView?
How to copy database from assets folder in android using kotlin
How to get screen size (width,height) in Android?
What is "shared preferences" in Android ?
Hide/Disable soft keyboard on Activity launch: Android
What is Context?
How do I generate random numbers in Dart?
How do i load image from drawable folder in Jetpack Compose?
What is Android Fragments?
How to Exit android app on back pressed?
How to extract date and time from Long type variable in Kotlin on Android "
Explain Fragment Life Cycle
Duplicate files during packaging of APK” build.gradle issue: Android Studio
Android Activity FullScreen - How to set activity to fullscreen mode in Android?
Emulator: emulator: ERROR: Can't find 'Linux version ' string in kernel image file: Andr
How to stop EditText focus at Activity startup in Android?
What are symmetric and asymmetric encryption in the way Android interacts with the server?
Android Studio project R can't find
What is the difference between match_parent and fill_parent?
How to Generate signed apk with android studio
How to check Android version?
INSTALL_FAILED_INVALID_APK: Split lib_slice_9_apk was defined multiple times. It is possible that th
How do I check in SQLite whether a table exists?
What is Android?
Permission denied for window type 2010 in Marshmallow device
How to start a new activity on button click