How do I get coordinates from a GPS service into a text file?
问题 I am new to Android programming. The source code that I have pasted is not my own, it is from a Github project. I want to save the coordinates of a GPS service into a textfile. Does anyone know how to do this? public class MainActivity extends AppCompatActivity { private Button btn_start, btn_stop; public Button save; private BroadcastReceiver broadcastReceiver; int delay = 1000; // delay for 1 sec. int period = 10000; // repeat every 10 sec. Timer timer = new Timer(); public EditText