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 page has been viewed 5063 times.