reset password

LMMPAA Code Analysis

Conventions

THINGS TO DO

THINGS TO ASK

AndroidManifest.xml

Current minSdkVersion is 11 (Android 3.0 Honeycomb), which has almost 0 market share now. Can we raise minSdkVersion to 14 (Android 4.0 Ice Cream Sandwich)?

MainActivity

onCreate()

handleIntent(): right now it only deals with search.

LoadViewTask().execute()

startMainActivity()

LoadViewTask

loadConfig(): retrieve some information from http://pub.lmmp.nasa.gov/lmmpmobile/config-1.0.json. Is there any documentation for the fields? In particular, is it possible to have more than one basemap or more than one bookmarks URL?

loadBookmarks(): retrieve bookmarks from the bookmarks URL in config.

loadInitialLayerData()

Initialize a LayerParser. LayerParser combines web service access and a XML SAX parser. At the very least web service access should be split into WebSeviceClient. We probably also want to rewrite the parser using either XmlPullParser (recommended by Google) or XStream (presumably easy to use).

Parse an XML file retrieved from the byproducttypeurl in config - http://pub.lmmp.nasa.gov/LMMP/rest/dbxml/layers?proj=IAU2000:30100&visOnly=true&sort=ProductType%2Ctitle. This would retrieve a fairly large XML file layers.xml which contains a number of layers. Retrieving this file takes a long time (probably because it's dynamically generated), which contributes significantly to the initial loading time. After parsing the XML file, a Map of WMSLayer is created, where the map key is the layer title. What exactly are these "layers"?

From all the layers, the layer "LRO LROC DEM, Tycho Crater, Grayscale" (hard-coded in MainActivity as layerMostLevels) is

 

This page has been viewed 5066 times.