Canvas draw functions not working after screen locked and unlocked

前端 未结 1 1637
陌清茗
陌清茗 2020-12-19 01:01

I\'m working on an augmented reality application in which I have a camera preview screen on which I draw some markers which moves with respect to device movement.

W

1条回答
  •  忘掉有多难
    2020-12-19 02:03

    I resolved the issue. It was with my SensorManager. The SensorManager was null when onStart() is executed.I initialized it inside the onStart() and resolved it.

    0 讨论(0)
提交回复
热议问题