Android: How to initialize a variable of type “Location” (other than making it equal to null)

The API documentation is quite clear on this. First create a new Location instance:

Location loc = new Location("dummyprovider");

And then use the setter methods to set the location parameters you need, e.g.:

loc.setLatitude(20.3);
loc.setLongitude(52.6);

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)