Assignment 1 – Android Lookup

Android Lookup

Android Lookup is an Android utility based on the *nix utility nslookup.

Source can be found at: https://drive.google.com/file/d/0B2ps44WBur2Cc0owcVhnQlhWclE/edit?usp=sharing

To lookup an IP Address:

Enter a hostname in the “Site Name” field. Then press the lookup button. The IP Address will be displayed in the “IP Address” field.

To lookup a Site Name:

Enter an IP Address in the “IP Address” field. Then press the lookup button. The hostname will be displayed in the “Site Name” field.

Note:

Sometimes the hostname lookup may return an unexpected hostname for an IP Address. This is because a single IP Address will often have one Canonical (true) hostname, but many aliases.\n

See http://en.wikipedia.org/wiki/Canonical_name_record

Changes:

The App had mostly been completed by the first progress report, so there are only minor changes since then.

The biggest changes are the addition of additional icons.

  • The Android icon in the menu bar has been changed to a Clemson tiger paw
  • The Lookup icon now looks a lot less generic.
  • A nice internet-y image has been added to fill the bottom of the screen.

Screen Shot 2014-01-26 at 10.15.31 PM

The biggest change is the addition of the Info button on the Activity Bar. The Help Button displays a simple message about the utility. This functionality is based on the message displaying functionality from Assignment 0.

Screen Shot 2014-01-26 at 10.15.40 PM

Acknowledgements

Special thanks to John Ingram for his excellent in-class presentation on software development.

Also, thanks to Greg Edison for demonstrating the drag ‘n’ drop functionality of Eclipse and other hints.

Great info about procrastination, including the instant gratification monkey, at http://waitbutwhy.com/2013/10/why-procrastinators-procrastinate.html and how to beat it at http://waitbutwhy.com/2013/11/how-to-beat-procrastination.html

Acknowledgements in the source code:

Handling networkonmainthread exception with AsyncTask: http://stackoverflow.com/questions/6343166/android-os-networkonmainthreadexception

How to do nslookup in Java:  http://www.coderanch.com/t/328875/java/java/nslookup-Java

More on InetAddresses from: http://download.java.net/jdk7/archive/b123/docs/api/java/net/InetAddress.html

Determining whether a string is an IP address: http://stackoverflow.com/questions/11723184/checking-if-string-is-web-address-or-ip-on-android
How to clear a edittext field: http://stackoverflow.com/questions/8758635/how-to-clear-the-edittext-when-onclick-on-button

How to display toasts:  http://developer.android.com/guide/topics/ui/notifiers/toasts.html

Android Menu functionality from http://developer.android.com/guide/topics/ui/menus.html

Guide to the Action bar from http://developer.android.com/guide/topics/ui/actionbar.html

Image for lookup icon used under Creative Commons license from: http://www.iconarchive.com/show/old-school-icons-by-babasse/recherche-internet-icon.html

Image for internet picture used under Creative Commons license from:  http://commons.wikimedia.org/wiki/File:Internet1.jpg

Advertisements
Posted in Android Development

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: