Assignment 2 – Android Lookup

Android Lookup

This is an Android utility based on the several *nix utilities.

Enter a hostname or IP Address on the main screen.


The lookup functionality gathers information about the given host. All known IP Addresses, the Canonical Name of the host, and whether the host is up or down are displayed in a table.


The whois functionality displays “whois” information for a given host. The “whois” information is displayed on a separate screen.

Downloads and Documentation

Assignment 2 extends the Android Lookup utility.

Binary is located at

Source code is now at GitHub:

Doxygen documentation for the Java classes is located at:


Screen Shot 2014-02-05 at 9.26.32 PM

Opening screen. Enter a hostname or IP Address. Globe looks it up. Question mark is Whois query

Screen Shot 2014-02-05 at 9.27.46 PM

Results for Sometimes Java can’t access servers that are accessible. This is due to a limitation in Java.

The table scrolls. Note the multiple IP addresses for

The table scrolls. Note the multiple IP addresses for

Screen Shot 2014-02-05 at 9.47.28 PM

Java will find some hosts. This host is known to be up and accessible from the network.

Screen Shot 2014-02-05 at 9.28.44 PM

A whois query. This text view scrolls in both directions.

Screen Shot 2014-02-05 at 9.29.00 PM

About and Acknowledgements. This view has been upgraded to a WebView to take advantage of HTML formatting. Links will open in the Android browser.

Screen Shot 2014-02-05 at 9.29.56 PM

Fail to enter a hostname? Get an error dialog!

Bad hostname? Get an error dialog!

Bad hostname? Get an error dialog!


Android Lookup 0.2

This would not have been possible without some great Eclipse tools:

I installed doxygen and git on my Mac using Homebrew.

I am now using github for revision control and, well, just backing up my projects.

Rick Foo’s blog about how to use doxygen with github to create a nice documentation page.


Apache Commons/Whois


Message Dialogs

Android Lookup 0.1

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 and how to beat it at

Acknowledgements in the source code:

Handling networkonmainthread exception with AsyncTask:

How to do nslookup in Java:

More on InetAddresses from:

Determining whether a string is an IP address:
How to clear a edittext field:

How to display toasts:

Android Menu functionality from

Guide to the Action bar from

Image for lookup icon used under Creative Commons license from:

Image for internet picture used under Creative Commons license from:

Tagged with: ,
Posted in Android Development, Progress Updates

Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: