Android compatible animation across devices

In the application I create, there is a simple animation of the image button (rotation) before starting the next action. I tested it on an emulator and 5 different devices:

  • Samsung GT-I5500

    Samsung Galaxy Nexus

    Samsung Galaxy s2

    Motorola Razr Maxx

    HTC (I do not remember the model)

The animation worked great on all models except the Nexus. In Nexus, the device expects the duration of the animation (500 ms) before the start of the next action, so instead of animation, it is simply an annoying (and seemingly inexplicable to the user) delay. Jelly Bean worked on all devices except the GT-I5500.

Questions:

1) Why does animation work on some devices and not on others, even on the same OS version?

2) Is there a way to check if the device is “susceptible” to animation? (I initially thought this had something to do with the SDK version, but it is not)

+5
source share
1 answer

Audio, video, GPU acceleration are hardware dependent. You can live in a platform-independent Java trap, and there are interfaces and inheritance. Actually there is a market:

  • Every manufacturer wants something special to get new customers.
  • There are programs created by programs, they may have errors, and if he can cave => he has it, because none of the tests is a 100% case.
+4
source

All Articles