feat(gpsrelaysentinel): 新增MainService服务用于接收GPS定位消息
- 添加MainService服务类,监听GPS定位更新(1秒间隔,1米距离) - 在AndroidManifest.xml注册MainService服务 - 添加定位权限ACCESS_FINE_LOCATION和ACCESS_COARSE_LOCATION - 使用LogUtils替代android.util.Log进行日志记录 - TAG属性改为public static final
This commit is contained in:
@@ -3,6 +3,9 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="cc.winboll.studio.gpsrelaysentinel">
|
||||
|
||||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
||||
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
@@ -32,6 +35,10 @@
|
||||
|
||||
<activity android:name=".GlobalApplication$CrashActivity"/>
|
||||
|
||||
<service android:name=".MainService"
|
||||
android:enabled="true"
|
||||
android:exported="false" />
|
||||
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
|
||||
Reference in New Issue
Block a user