6. Return to the EarthquakeMapFragment and modify the onCreateView handler to create the Earthquake Overlay and add it to the Map View:EarthquakeOverlay eo;7. Still in the EarthquakeMapFragment, modify it to implement LoaderManager .LoaderCallbacks:8. Implement onCreateLoader to create a Cursor Loader to return all the earthquakes you want to display on the map:9. Implement the onLoadFinished and onLoaderReset methods to apply the returned Cursors to the Earthquake Overlay you created in step 5:10. Finally, override the onActivityCreated handler to initiate the Loader:All code snippets in this example are part of the Chapter 13 Earthquake Part 6 project, available for download at www. wrox. com.If you run the application and view the Earthquake Map, your application should appear, as shown in Figure 13-7.
đang được dịch, vui lòng đợi..
