Exemple #1
0
 @Override
 public void onPause() {
   super.onPause();
   if (options != null) {
     DBConnector connector = new DBConnector(this);
     connector.setOptions(options);
   }
 }
Exemple #2
0
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    aq = new AQuery(this);
    transportListPattern = Pattern.compile("(\\s*\\w+\\d*,*\\s*)+");
    transportNumberPatern = Pattern.compile("№\\s*(\\d+\\w*)");

    setContentView(R.layout.activity_main);
    MapView mapView = (MapView) findViewById(R.id.mapview);
    mapView.setBuiltInZoomControls(true);

    MapController mapController = mapView.getController();

    DBConnector connector = new DBConnector(this);
    options = connector.getOptions();
    if (options == null) {
      options = new Options(10, "136, 32"); // defailtOptions;
    }
    mapController.setZoom(options.getZoom());
    ReuestToServer();
  }