Selected Marker does not move on the map. android using java

Viewed 16

i am making a tracking app using java language and retrofit2 getting devices(objects) datas from a server side. the problem is not on the main map, all the markers are moving but when selecting a device from my devicesList, the marker is on current position but doesn't move. is there a mistake in my code? please try to check you solutions ideas may change my life. normally i would like to work in the same map when objetcs selected then camera move to the selected marker.

In my objectsAdapter for parsing data from mainMap to currentPosition by selecting on Expandablelistview:

convertView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(context, CurrentePositionActivity.class);
                intent.putExtra("device", new Gson().toJson(item));
                context.startActivity(intent);
            }
        });

here is my CurrentPositionActivity: https://github.com/bonachylauriel/GPRStrack/blob/master/app/src/main/java/com/gabontech/gprstrack/activities/CurrentePositionActivity.java

HERE is my Device(Object) Adapter fro parsing Marker's data to CurrentPositionActivity on GoogleMap: https://github.com/bonachylauriel/GPRStrack/blob/master/app/src/main/java/com/gabontech/gprstrack/adapters/ObjectsAdapter.java

When parsing data to CurrentPositionActivity, i used device.id to get the Object(Device) with coordonates on the map but not moving. if you have any ideas that can help.

DeviceModel:

https://github.com/bonachylauriel/GPRStrack/blob/master/app/src/main/java/com/gabontech/gprstrack/models/Device.java

0 Answers
Related