# location-record **Repository Path**: zhangxiaochun11/location-record ## Basic Information - **Project Name**: location-record - **Description**: 位置上报,可以调整频率,耗电啊 - **Primary Language**: Android - **License**: Not specified - **Default Branch**: master - **Homepage**: https://gitee.com/bufengyi/scan-server - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2022-09-11 - **Last Updated**: 2022-09-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 需求 ![](asset/img/1.jpg) ![](asset/img/2.jpg) ![](asset/img/3.jpg) ## 目标 https://www.zcool.com.cn/work/ZNTIxNTU1OTY=.html https://www.iconfont.cn/ - [x] 可以调节上报时间. 2s(最多5次,然后自动变成10分钟一次。)。5分钟,10分钟,20分钟,30分钟,60分钟,2小时,4小时,6小时,8小时,12小时,24小时,48小时。 - [x] 关于页面开发完成 - [x] 显示最近的历史上报信息 - [ ] 历史iteam点击到地图页面,查看地图位置。 - [ ] 显示轨迹 - [ ] 管理后台 - [ ] 管控端研发 - [ ] 程序升级研究 https://gitee.com/jenly1314/AppUpdater - [ ] 检查更新按钮,可以手动更新。 - [ ] 欢迎页 https://gitee.com/jenly1314/GuidePage - [ ] 登录注册 https://github.com/shem8/MaterialLogin - [x] 新版登录页面 https://github.com/kongzue/DialogX/wiki/%E5%85%A8%E5%B1%8F%E5%AF%B9%E8%AF%9D%E6%A1%86-FullScreenDialog - [ ] 我的页面和设置页面 https://gitee.com/quanguanzhou/TitleNavigationView - [ ] 查看别人在地图的位置,输入手机号码和授权码即可 1. [时间戳转换](https://www.beijing-time.org/shijianchuo/) ## 使用组件 名称 | 用途 | 地址 --- | --- | --- AppUpdater | 软件更新| https://gitee.com/jenly1314/AppUpdater SpiderMan | 查看崩溃信息 | https://gitee.com/simplepeng/SpiderMan DialogX | 输入账号 | https://github.com/kongzue/DialogX BaseFramework | BaseFramework | https://github.com/kongzue/BaseFramework KVUtils | KV存储 | https://github.com/lany192/KVUtils folding-cell-android | 订单,详情单 | https://github.com/Ramotion/folding-cell-android ViewPagerCards | 人物选择卡片 | https://github.com/rubensousa/ViewPagerCards SlidingBall| 人物选择卡片2 | https://github.com/yixiaolunhui/SlidingBall 底部栏 | 仿微信的底部栏 | https://github.com/jeasonlzy/AlphaIndicatorView 底部栏 | 仿微信的底部栏 | https://github.com/yingLanNull/AlphaTabsIndicator 时间线 | 展示历史记录或者订单 | https://github.com/vipulasri/Timeline-View 关于 | | https://github.com/medyo/android-about-page 浮动按钮的菜单 |浮动按钮的菜单 | https://github.com/rubensousa/FloatingToolbar 显示GPS强度的库 | | https://github.com/hzw1199/AndroidGpsStatus ### KVUtils ```java this.userId = KVUtils.get().getLong(Constant.USER_ID, 0L); ``` ### 知识 1. [Android基础知识课程](https://github.com/RedwanSharafatKabir/Android-Development-with-JAVA) 1. [动态申请定位权限](https://blog.csdn.net/qq_21399461/article/details/105203854) 1. [Android ANR:原理分析及解决办法](https://www.jianshu.com/p/388166988cef) 1. [Android Gps/位置信息开关检测](https://www.jianshu.com/p/6d49fc113cd0) 1. [Fragment里面获取广播](https://blog.csdn.net/u012306714/article/details/40587441) 1. [百度地图开发MapView+Fragment出现的问题](https://blog.csdn.net/u013268154/article/details/53033329) 1. [百度地图点击地图显示所选位置与自定义回到定位按钮](https://blog.csdn.net/chenhuakang/article/details/80909652) 1. [facebook的耗电监控](https://github.com/facebookincubator/Battery-Metrics) 1. [android基础组件学习](https://github.com/iamageo/android-basic-examples) 1. [使用Kongzue全家桶组件创建项目全攻略](https://www.jianshu.com/p/fac880bba8e6) ### 优秀项目参考 1. [awesome-github-android-ui](https://github.com/opendigg/awesome-github-android-ui) 1. [awesome-android-ui](https://github.com/wasabeef/awesome-android-ui) 1. [https://github.com/JStumpp/awesome-android](https://github.com/JStumpp/awesome-android) 1. [基于高德地图开发的](https://github.com/andforce/Maps) 1. [https://gitee.com/ningyuwen/XX-music](https://gitee.com/ningyuwen/XX-music) 1. [https://gitee.com/jenly1314/MVVMFrame](https://gitee.com/jenly1314/MVVMFrame) 1. [android仿滴滴时间选择控件](https://github.com/liangchengcheng/Android-PickerView) 1. [TODO](https://github.com/avjinder/Minimal-Todo) 1. [inimalist-to-do-list](https://github.com/iamageo/minimalist-to-do-list) 1. [tinytodo-android](https://github.com/anggadarkprince/tinytodo-android) 1. [ToDont](https://github.com/Crazy-Marvin/ToDont) 1. [提示器](https://github.com/Tapadoo/Alerter) 1. [LoginUI](https://github.com/Shashank02051997/LoginUI-Android) 1. [简介朴素的登录页面](https://github.com/liangchengcheng/LoginDemo) 1. [开源日记](https://gitee.com/ywrby/LereDiary) 1. [App模板](https://gitee.com/jenly1314/AppTemplate) 1. [九宫格展示](https://gitee.com/vanish136_admin/NineGridView) 1. [校园助手](https://gitee.com/GdeiAssistant/GdeiAssistant-Android) 1. [Android富文本XRichText](https://gitee.com/sendtion/XRichText) 1. [FormatEditText](https://gitee.com/dkzwm/FormatEditText) 1. [ToastUtils](https://gitee.com/mengpeng920223/ToastUtils) 1. [CuteToast](https://github.com/ahmmedrejowan/CuteToast) 1. [CuteButton](https://github.com/ahmmedrejowan/CuteButton) 1. [来电信息](https://gitee.com/riverside5/CallerInfo) 1. [SuperTextView](https://gitee.com/jenly1314/SuperTextView) 1. [非常不错的SmartRefreshLayout](https://gitee.com/scwang90/SmartRefreshLayout) 1. [CanRefresh](https://github.com/canyinghao/CanRefresh) 1. [有很多组件](https://github.com/canyinghao) 1. [大量组件](https://github.com/kongzue?tab=repositories) 1. [步数指示器](https://gitee.com/jenly1314/SpinCounterView) 1. [聊天应用](https://gitee.com/Yetel/EasyChatAndroidClient) 1. [MoonMeet-Android](https://github.com/MoonMeet/MoonMeet-Android) 1. [FairEmail](https://github.com/M66B/FairEmail) 1. [Fmap](https://github.com/jiyouliang/FMap) 1. [grocy-android](https://github.com/patzly/grocy-android) 1. [LocationReminders基于位置的提醒](https://github.com/TomatoPana/LocationReminders) 1. [游戏](https://github.com/agateau/pixelwheels) 1. [OpenTracks追踪](https://github.com/OpenTracksApp/OpenTracks) 1. [nextcloud-notes](https://github.com/stefan-niedermann/nextcloud-notes) 1. [DialogX](https://github.com/kongzue/DialogX) 1. [导航栏很不错](https://github.com/kongzue/Tabbar) 1. [提示框很不错](https://github.com/kongzue/DialogV3) 1. [标题栏](https://github.com/kongzue/TitleBar) 1. [开源笔记](https://github.com/kongzue/Notes) 1. [一款极简的笔记Notepad](https://github.com/farmerbb/Notepad) 1. [非常不错的笔记-随手记-画风可以](https://github.com/pikachu0621/Notes) 1. [手机乐园,灰常不错](https://github.com/Z-P-J/sjly) 1. [CircularFillableLoaders](https://github.com/lopspower/CircularFillableLoaders) 1. [浏览器](https://github.com/mrepol742/PROJECT-WEBVIUM) 1. [ Jetpack MVVM 最佳实践](https://github.com/KunMinX/Jetpack-MVVM-Best-Practice) 1. [Jetpack MVVM脚手架](https://github.com/KunMinX/Jetpack-MVVM-Scaffold) 1. [简单地音乐软件](https://github.com/Benji377/SocyMusic) 1. [Apollo-Music](https://github.com/nuclearfog/Apollo-Music) 1. [地震报告软件](https://github.com/sreenathpranav/QuakeReportApp) 1. [BasePopup](https://github.com/razerdp/BasePopup) 1. [视频播放器](https://github.com/moneytoo/Player) 1. [播客](https://github.com/AntennaPod/AntennaPod) 1. [非常不错的图表展示](https://github.com/AAChartModel/AAChartCore) 1. [视频播放器DKVideoPlayer](https://github.com/Doikki/DKVideoPlayer) 1. [微博第三方客户端](https://github.com/yuqirong/Koku) 1. [轻松实现文件后台上传](https://github.com/gotev/android-upload-service) 1. [markdown文档](https://github.com/falnatsheh/MarkdownView) 1. [markdown文档显示](https://github.com/tiagohm/MarkdownView) 1. [B站第三方客户端](https://github.com/LeonNOV/BiuVideo) 1. [B站](https://github.com/brokes6/D-BiliBili) 1. [微博第三方客户端](https://github.com/andforce/iBeebo) 1. [蚂蚁笔记](https://github.com/apon/notez) 1. [定位监控系统](https://github.com/guoyaohua/GodsEYE) 1. [旅游类微信小程序demo](https://github.com/cmh1996/wx-APP) ## 镜像加速 > https://github.com/gzu-liyujiang/AliyunGradleConfig 在天朝使用 jcenter、mavenCentral 及 google 三个远程仓库,Gradle Sync 会很慢, google 仓库甚至需要科学上网才能访问。 为了加快速度,优先用 阿里云仓库服务 的仓库作为下载源, 将本项目的gradle/init.d/init.gradle复制到{USER_HOME}/.gradle/下即可, USER_HOME在 Windows 上大约为C:/Users/liyujiang/.gradle/,在 Linux 上大约为/home/liyujiang/.gradle/, init.d/init.gradle内容为: ``` buildscript { repositories { maven { url 'https://maven.aliyun.com/repositories/jcenter' } maven { url 'https://maven.aliyun.com/repositories/google' } maven { url 'https://maven.aliyun.com/repository/gradle-plugin' } } } allprojects { repositories { maven { url 'https://maven.aliyun.com/repositories/jcenter' } maven { url 'https://maven.aliyun.com/repositories/google' } maven { url 'https://maven.aliyun.com/repository/central' } maven { url "https://www.jitpack.io" } } } ``` #### ANR 1. [Android service 启动篇之 startForegroundService](https://blog.csdn.net/shift_wwx/article/details/82496447) 这篇文章指出为啥会ANR 1. [java.lang.RuntimeException: invalid channel for service notification](https://blog.csdn.net/NewActivity/article/details/103243124) 1. [在Android 8.0中使用Notification中发生 Bad notification for startForeground错误](https://www.jianshu.com/p/8baa62c5bfc2) ## Change Log ### 2.1 1. 加入历史查询,后台支持分页查询 ### 2.0 1. 重写关于信息页 ### 1.7 [解决 Android 10/Android Q手机在后台无法正常定位问题](https://www.jianshu.com/p/55bc4b4d0dbf) :后台获取位置信息的权限 ### 1.8 1. 可以修改时间,存储上次时间到shareprefer 1. 如果地图更新时间一样的,则不上报信息 1. 上传到服务器