[SysApps][Android] Support different resolution for DeviceCapabilities demo.

The original implementation does not consider supporting different
resolution. This patch will support and has been tested in many phones
and emulators.