public void location_ajax() { LocationAjaxCallback cb = new LocationAjaxCallback(); cb.weakHandler(this, "locationCb").timeout(30 * 1000).accuracy(1000).iteration(3); cb.async(this); this.cb = cb; }
@Override public void onStop() { super.onStop(); if (cb != null) { cb.stop(); } }