title: How to search locations offline in here maps?
body: <p>Here the sample code for search feature which works only when data is on.</p>
  
  <pre><code>  private void searching() {
  
          Log.d(TAG, "init: initializing");
          search = (EditText) findViewById(R.id.input_search);
          search.setOnKeyListener(new View.OnKeyListener() {
              @Override
              public boolean onKey(View v, int keyCode, KeyEvent event) {
                  if (event.getAction() == EditorInfo.IME_ACTION_SEARCH || event.getKeyCode() == KeyEvent.KEYCODE_ENTER) {
                      Log.d(TAG, "geolocate: Geolocating");
                      Geocoder geocoder = new Geocoder(MainActivity.this);
                      List&lt;Address&gt; list = new ArrayList&lt;&gt;();
                      String searchString = search.getText().toString();
                      try {
                          list = geocoder.getFromLocationName(searchString, 1);
                      } catch (IOException e) {
                          Log.e(TAG, "geolocater: IO exception" + e.getMessage());
                      }
                      if (list.size() &gt; 0) {
                          final Address address = list.get(0);
                          Log.d(TAG, "Found the address:" + address.toString());
                          GeoCoordinate geoCoordinate=new GeoCoordinate(address.getLatitude(),address.getLongitude());
                          Image image=new Image();
                          try {
                              image.setImageResource(R.drawable.marker1);
                          } catch (IOException e) {
                              e.printStackTrace();
                          }
                          if (mm != null) {
                              mm.setVisible(false);
                          }
                          mm=new MapMarker(geoCoordinate,image);
                         map.addMapObject(mm);
                          map.setCenter(geoCoordinate,
                                  Map.Animation.BOW, 13.0d, 180, 45);
                          map.setZoomLevel((map.getMaxZoomLevel() + map.getMinZoomLevel()) / 1.5);
                      }
                  }
                  return false;
              }
          });
      }
  
  </code></pre>
  
  <p>But I thought it would work the same during offline but it isn't. I also have downloaded the map offline, but some how this code is not working on the downloaded map. how can i solve this</p>