@Override public Dialog onCreateDialog(int which) { switch (which) { case SSID_FILTER: return createSsidFilterDialog(this, ""); default: ListActivity.error("unhandled dialog: " + which); } return null; }
private void enableLocation() { try { // force it to think it's own location listening is on myLocationOverlay.mLocationListener = new LocationListenerProxy(null); STATIC_LOCATION_LISTENER = myLocationOverlay; MainActivity.getListActivity(this).getGPSListener().setMapListener(myLocationOverlay); myLocationOverlay.enableMyLocation(); } catch (Exception ex) { ListActivity.error("Could not enableLocation for maps: " + ex, ex); } }