Skip to content Skip to sidebar Skip to footer

Custom Maps Marker Point With Picasso Not Loaded

I'm implementing android Mapview with Custom marker. I'm using picasso to load image into marker view. But the maps not shows me the marker that i needed. Here's my code i = getInt

Solution 1:

I use Handler to show the markers with some delay. So i change my code like this

i = getIntent();
if(i.getBooleanExtra("maps", true)) {
    ActionBarmactionBar= getSupportActionBar();
    mactionBar.setSubtitle(i.getStringExtra("nama"));
    buttonNavigasi.setVisibility(View.VISIBLE);
    mMyMarkersArray.add(newMyMarker(i.getStringExtra("nama"), i.getStringExtra("deskripsi"), i.getStringExtra("foto"), i.getStringExtra("marker"), Double.parseDouble(i.getStringExtra("lat")), Double.parseDouble(i.getStringExtra("lng"))));

    HandlerUI_HANDLER=newHandler();
    UI_HANDLER.postDelayed(UI_UPDATE_RUNNABLE, 500);
}

And this

RunnableUI_UPDATE_RUNNABLE=newRunnable() {
    @Overridepublicvoidrun() {
        plotMarkers(mMyMarkersArray);
    }
};

Post a Comment for "Custom Maps Marker Point With Picasso Not Loaded"