Location.java
package com.localisation;
import java.io.IOException;
import java.util.List;
import android.app.Activity;
import android.app.AlertDialog;
imp
I'm not sure if you are asking in general, "how do I get the gps location?" or more specific "what's wrong with this code".
If its general- this appears in How do I get the current GPS location programmatically in Android?. Also, I suggest you be careful with the getLastKnownLocation method. The last location can be horribly out of date. I also suggest you start polling gps before you actually need it, it can sometimes take a few seconds (or more) to get your first gps reading.
If its specific- maybe explain what problems you're having?