S
S
schoolboy2016-05-13 23:19:01
Android
schoolboy, 2016-05-13 23:19:01

How to add labels and delete in Sqlite database. (Google Map API)?

Good evening. Made a method for adding labels to the map

m_googleMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {
            @Override
            public void onMapClick(LatLng latLng) {
                MarkerOptions markerOptions = new MarkerOptions();
                markerOptions.position(latLng);
                 m_googleMap.addMarker(markerOptions);

But how to save these labels and delete them in the database?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AndroidDev2015, 2016-05-14
@AndroidDev2015

Берите и сохраняйте координаты из LatLng latLng в соответствующих полях.
Чтобы находить и удалять сделайте еще одно поле с хеш кодом обеих координат.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question