I've been following a step by step tutorial trying to create a map using Mapbox and Android Studio using the 'Tracking Device Location on Android" tutorial but have run into a problem that doesn't seem to be outlined on Mapbox. In the 'Listen to Updates' section of the tutorial, on line 176 of the code it reads:
Toast.makeText(activity, String.format(activity.getString(R.string.new_location)
new_location shows up in red and has not been defined beforehand. Does anyone know how to fix this?
https://docs.mapbox.com/help/tutorials/android-location-listening/#listen-to-location-updates