Adding Google Maps to your application in Android Studio using Google Map API key

preview_player
Показать описание
In this tutorial you will learn how to Add google maps to your application in android and change the default location of google map to your location and add a marker to your location in google map using android studio.
Рекомендации по теме
Комментарии
Автор

I don´t know what are your intention but your explanation doesnt work. Appearme that can´t cast to To me doesn´t work. That´s my code


package map.chef.chefmap;
import android.app.Fragment;
import
import
import
import
import

import android.os.Bundle;
import

public class MapActivity extends AppCompatActivity implements OnMapReadyCallback {


@Override
protected void onCreate(Bundle savedInstanceState) {



SupportMapFragment mapFragment = (SupportMapFragment)


}

/**
* This is where we can add markers or lines, add listeners or move the camera. In this case,
* we
* just add a marker near Africa.
*/
@Override
public void onMapReady(GoogleMap map) {
map.addMarker(new MarkerOptions().position(new LatLng(5, 9)).title("Marker"));
}
}
Please explainme better what can I do in this case.

JuanPablo-ptgs
Автор

Hello, what do you mean by "Install the app on your device" ?

kewinn.
join shbcf.ru