android - How to call getMapAsync() from an activity -
i trying call getmapasync() activity got error:
error:(109, 14) error: cannot find symbol method getmapasync(categoryactivity)
public class categoryactivity extends activity implements view.onclicklistener,onmapreadycallback { protected void oncreate(bundle savedinstancestate) { //requestwindowfeature(window.feature_no_title); super.oncreate(savedinstancestate); setcontentview(r.layout.activity_map); mapfragment mapfragment = (mapfragment) getfragmentmanager().findfragmentbyid(r.id.mapcontainerlayout); mapfragment.getmapasync(this); }
try defining private class implementing onmapreadycallback interface , passing object.
Comments
Post a Comment