我想在用户单击按钮时启动服务。
基本上,当用户单击开始按钮时,服务应开始记录 GPS 坐标,当他单击停止时,服务应终止。
我应该如何实施这个?
service gps android button
android ×1
button ×1
gps ×1
service ×1