android - how can i save marker throught the application life? -


can 1 tell me how can save marker in application clicking button. when add marker this:

protected  void oncreate(bundle savedinstancestate) {     map.addmarker(new markeroptions().text("xxx").dragabble(true).position(new latlng(xx,yy))); } 

it saves marker if restart application when so:

protected  void oncreate(bundle savedinstancestate) {       map.setonmaplongclicklistener(new onmaplongclicklistener() {          @override         public void onmaplongclick(latlng point) {             //clicking on map long create marker                    //adding marker              map.addmarker(new markeroptions().position(newlatlng(xxx,yyy)).draggable(true).title("hello new marker"));                           }     }); } 

it adds marker not seen after program restarted. how can marker saved clicking map or button?


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -