<Updating the GPS position of a device in an Andro...
# stackoverflow
u
Updating the GPS position of a device in an Android app I have a tiny Android app written in kotlin, it gets the location of the device. Almost all the code is hereafter (I did not include the UI) : class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) gpsPermissionCheck() val client = LocationServices.getFusedLocationProviderClient(this) client.lastLocation.addOnSuccessListener {...