title: How can i use MapBox on Android
body: <p>How can i display MapBox tiles on Android ? I tried using it with OSMDroid, and Nutiteq with no success. Is there a android library for MapBox ?</p>
  
  <p>For example i used this code to implement MapBox on OSMDroid : <a href="http://blog.spatialnetworks.com/post/2012/07/using-mbtiles-on-android-with-osmdroid" rel="nofollow">http://blog.spatialnetworks.com/post/2012/07/using-mbtiles-on-android-with-osmdroid</a></p>
  
  <pre><code>XYTileSource MBTILESRENDER = new XYTileSource("mbtiles", ResourceProxy.string.offline_mode, 1, 20, 256, ".png", "http://example.org/");
  DefaultResourceProxyImpl mResourceProxy = new DefaultResourceProxyImpl(this.getApplicationContext());
  SimpleRegisterReceiver simpleReceiver = new SimpleRegisterReceiver(this.getActivity());
  
  File f = new File(Environment.getExternalStorageDirectory(), "mymbtilesfile.mbtiles");
  
  IArchiveFile[] files = { MBTilesFileArchive.getDatabaseFileArchive(f) };
  
  MapTileModuleProviderBase moduleProvider = new MapTileFileArchiveProvider(simpleReceiver, MBTILESRENDER, files);
  
  MapTileProviderArray mProvider = new MapTileProviderArray(MBTILESRENDER, null, new     MapTileModuleProviderBase[] { moduleProvider });
  
  this.mMapView = new MapView(this, 256, mResourceProxy, mProvider);
  </code></pre>
  
  <p>But it didn't work, i want to load MbTiles directly from the web.</p>