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

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -