Is there a way to determine if the Sense user interface is working on the device?

Is there any way in Android to determine if the Sense UI is working on the device? I am working on an application that works fine with vanilla Android, but the Sense UI is messing with layouts and sizes. I would like to know if the Sense UI is working on the device, and therefore I can take the appropriate measures.

+3
source share
1 answer

Nothing is built into Android, which indicates which modifications, such as Sense, are being performed on the device. You need to either use PackageManagerHTC Sense to search for components, or use the class Buildto determine which device model you are on. In any case, you will need to update this “sniffing” logic, as Sense has been changed and introduced to new devices.

but the Sense interface interacts with layouts and sizes

If you have a reproducible test case with source code that demonstrates these problems, I would be interested to see it.

There are only two scenarios that I can come up with that fit your description:

  • - HTC Sense, , - . , , .

  • android.R, HTC Sense, SDK .

+4

Source: https://habr.com/ru/post/1753905/


All Articles