title: Offline Map in Android using a .map file
body: <p>I found some code to view a offline map using a .map file. But I can't find a way to create a .map file or to generate one for a specific city or state.
  Can anybody tell me how to create or generate a .map file for particular city or state?
  My code for showing a offline map using a .map file is given below: </p>
  
  <pre><code>public class HelloMapView extends MapActivity {
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          MapView mapView = new MapView(this);
          mapView.setClickable(true);
          mapView.setBuiltInZoomControls(true);
          mapView.setMapFile(new File("/sdcard/path/to/mapfile.map"));
          setContentView(mapView);
      }
  }
  </code></pre>
  
  <p>I am unable to create  a .map file so please provide me a solution for this asap.</p>