Removed obsolete code from shared-code segment for emailing.
Moved the call to getNetworkConnection() - for some reason it fails if it comes after findAppIcon().