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

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -