Is there any way to run service continuously?

前端 未结 3 1405
小蘑菇
小蘑菇 2020-11-30 08:27

There are few questions similar to this on Stack Overflow but none of the solutions are working for me

The problem is with only few devices like OnePlus and MI, The

3条回答
  •  盖世英雄少女心
    2020-11-30 08:53

    The right way to listen to location on the background of to use a fused location API from play services.

    Look at the samples here. https://github.com/googlesamples/android-play-location?files=1

    These API's are power efficient, and I would recommend it too.

提交回复
热议问题