I couldnt understand how to fill something like this by my own values without gps connection:
val lastLocation: Location? = Location()
When we input provider like this:
val lastLocation: Location? = Location(LocationManager.GPS_PROVIDER)
lastLocation values are null.
On the one hand Location() has its own constructor(as I understand) and even method set(), but l I can't figure out how to fill it with my own values.
Maybe someone can show an example or provide a useful link?