Android Listen For Change in GPS Status?

后端 未结 2 1833
花落未央
花落未央 2021-01-07 14:43

Hello I need to know how to listen for the following with the GPS in Android so I can update the UI in a PreferenceActivity. I have tried GpsStatus.Listen

2条回答
  •  既然无缘
    2021-01-07 15:17

    Looked at the source code for the system settings app and how they did it and implemented it into my app and it works great. @SKJ thx for the help but sadly I couldn't get the GpsStatus.Listener to work the source code works perfectly.

提交回复
热议问题