to anyone who has crashes: 1. be sure that you don't have : val mapFragment = supportFragmentManager .findFragmentById(R.id.map) as SupportMapFragment mapFragment.getMapAsync(this) inside onCreate() 2. be sure that you have : private lateinit var mMap: GoogleMap in onCreate(), then your onMapReady override should look like this: mMap = googleMap val latlng= LatLng(currentLocation.latitude,currentLocation.longitude) val markerOptions = MarkerOptions().position(latlng).title("Twoja lokalizacja") mMap.animateCamera(CameraUpdateFactory.newLatLng(latlng)) mMap.animateCamera (CameraUpdateFactory.newLatLngZoom(latlng, 7f)) mMap.addMarker (markerOptions) 3. better have these 2 permissions also (not necessary i think):
this worked for me and app finally stopped crashing and map is no longer empty :)
Hi, I would like to ask i done the ToDoList app u taught 2y ago however mine can add text but i cant tick the checkbox and delete ... can ik is thr something i missed?
Nice Job Deeksha. Keep it up:)
Yes now working ..if it is not working then change dependency to the gradle file ...choose dependency version as available in your project ..
Good Tutorial
how to come back after selecting the location in the map
Hello mam can you upload nearby search app using kotlin please🙏
to anyone who has crashes:
1. be sure that you don't have :
val mapFragment = supportFragmentManager
.findFragmentById(R.id.map) as SupportMapFragment
mapFragment.getMapAsync(this)
inside onCreate()
2. be sure that you have :
private lateinit var mMap: GoogleMap
in onCreate(), then your onMapReady override should look like this:
mMap = googleMap
val latlng= LatLng(currentLocation.latitude,currentLocation.longitude)
val markerOptions = MarkerOptions().position(latlng).title("Twoja lokalizacja")
mMap.animateCamera(CameraUpdateFactory.newLatLng(latlng))
mMap.animateCamera (CameraUpdateFactory.newLatLngZoom(latlng, 7f))
mMap.addMarker (markerOptions)
3. better have these 2 permissions also (not necessary i think):
this worked for me and app finally stopped crashing and map is no longer empty :)
Not showing on my device the location why
does not function....
Running but not showing anything
I am getting error in same code😭
Hi, I would like to ask i done the ToDoList app u taught 2y ago however mine can add text but i cant tick the checkbox and delete ... can ik is thr something i missed?
If you can add the link here..Perhaps it might help to assist you figure out what you want.
it works
Can you please assist me please,,,is just showing the package and google write up but the map is not showing
@@Kemyikpe You need to turn on the Google maps SDK from gcloud console
@@Baris_FK do you mean map SDK for Andriod?
@@Kemyikpe yes
getLocation is declared but never used
yes bro!!