Check Android device for available video capabilites?
Is there any easy way to check if an Android device can play a 1280 x 720 px MP4 H.264 Video, so that an app could gracefully fall back on a lower resolution version like 360 x 480 px or disable the video functionality? (The videos are embedded in the app, as they aren't very long.)
You can get the physical resolution of the device using the following snippet:
WindowManager w = getWindowManager(); Display d = w.getDefaultDisplay(); int width = d.getWidth(); int height = d.getHeight();