URIHandlerActivity: Warning cleanup.
WifiConnectionSettings: Refactor.

This patch cleans up warnings.

This patch fixes a potential crash (null wifi or SSID) in
onPreferenceTreeClick().

Finally, this patch fixes a bug where the list would add to itself
after the returning to this activity after pressing back.