applogies just spotted a issue with the code

public void createLocationProvider(){
cr=new Criteria();

try{
lp = LocationProvider.getInstance(cr);
}
catch(LocationException le){

}
}
public void setLocationListener(){
lp.setLocationListener(this, 2, -1, -1);
}


There