
* installed Google Play services and returned to the void onMapReady( GoogleMap googleMap ) This method will only be triggered once the user has * If Google Play services is not installed on the device, the user will be prompted to install * This is where we can add markers or lines, add listeners or move the camera. * This callback is triggered when the map is ready to be used. GetChildFragmentManager().findFragmentById( R.id.map ) View view = inflater.inflate( R.agment_base_map, container, false ) Private static final int TILE_HEIGHT = View onCreateView( LayoutInflater inflater, ViewGroup container,

Private static final int TILE_WIDTH = 256 * The base map without any additional content Here's the Java code for my map fragment (without the imports): /** It doesn't give any of the above errors and displays all of the tiles (but only when online). What I tried previously that works is a modified UrlTileProvider (shown below, based on user611447's answer here). I've never made an app download an image before (or anything really, this is my first app). I've tried looking it over carefully, but I have no idea what the problem is. The answer linked to above was the most helpful thing I've found so far (despite it giving me an error).

I know the tile exists though because I can go to that URL and view it. I get this error for every tile: java.io.FileNotFoundException: Which tells me that perhaps it downloaded it (or at least tried to) but just can't find it?Īnother weird thing happens when I try to use OpenStreetMap tiles instead (just to test if it's working). However, I receive the following error for every tile that I don't have a URL for (my tiles don't cover the whole map): java.io.FileNotFoundException: Īnd when it tries to load a tile that I do have a URL for, I get this error: java.io.FileNotFoundException: data_directory/6/33/31.png: open failed: ENOENT (No such file or directory) I think it's supposed to display tiles stored on the device, or download and display them if they aren't on the device. I modified it slightly so that it works in my map Fragment instead of an Activity. I tried implementing 0ne_Up's OfflineTileProvider from here. My tiles create a heat-map for conveying data and need to be available later when the device is offline.

Note that I am not trying to store/cache Google's tiles. Download custom tiles via URLs to an Android device and view them using Google Maps.
