Skip to content

Demo doesn't work on Android 5.1.1 #21

Open

Description

@haskellcamargo

The provided demo APK just exhibits a static image, without any other action that uses the sensor.
The used device is a Moto G3.

Example

Activity

  1. ppamorim commented on Nov 18, 2015

    @ppamorim

    @haskellcamargo Works fine here.

  2. eduardocalazansjr commented on Nov 18, 2015

    @eduardocalazansjr

    Same issue on 6.0 + Nexus 5 / 5x

    Just changed SENSOR_DELAY_FASTEST to SENSOR_DELAY_GAME and it works fine.

    Issue

  3. haskellcamargo commented on Nov 18, 2015

    @haskellcamargo
    Author

    On Moto G3, it didn't work neither with SENSOR_DELAY_FASTEST nor SENSOR_DELAY_GAME.
    Demo

  4. eduardocalazansjr commented on Nov 18, 2015

    @eduardocalazansjr

    Moto G3 doesn't have a gyroscope, right?
    In that case, i think that Sensor.TYPE_ROTATION_VECTOR is the problem, could you try with Sensor.TYPE_GAME_ROTATION_VECTOR?

  5. haskellcamargo commented on Nov 18, 2015

    @haskellcamargo
    Author

    I've already done it. Neither of them work. Both fail with the same E/SensorManager: sensor or listener is null error.

  6. ShyaamJadhav commented on Feb 24, 2016

    @ShyaamJadhav

    can we make this work for lower android versions like kitkat.
    I tried to test this on samsung grand 2 mobile and made changes like,

    changed SENSOR_DELAY_FASTEST to SENSOR_DELAY_GAME and
    Sensor.TYPE_ROTATION_VECTOR to Sensor.TYPE_GAME_ROTATION_VECTOR

  7. andersonbadari commented on Jul 15, 2016

    @andersonbadari

    same here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions