GPS Application crash
问题 I have to write an application which does several things, including recording the GPS location of the user when a correct username and password is entered. I only want the latitude and longitude at that exact moment, no recurring checks or anything of that nature. I think I found something similar to what I was looking for: How to call to get a single gps fix when ever i want android? However, eclipse didn't like the context since I hadn't initialized it yet. So here is that entire section of