This class sets up the activity that displays the whois info. More...
Public Member Functions | |
boolean | onCreateOptionsMenu (Menu menu) |
Inflate the menu; this adds items to the action bar if it is present. More... | |
boolean | onOptionsItemSelected (MenuItem item) |
Protected Member Functions | |
void | onCreate (Bundle savedInstanceState) |
Called when the activity is created. More... | |
Private Member Functions | |
void | setupActionBar () |
This class sets up the activity that displays the whois info.
How to install apache commons from http://stackoverflow.com/questions/2331803/how-to-use-org-apache-commons-lang-namespace-in-java How to add to build path from http://stackoverflow.com/questions/1334802/how-can-i-use-external-jars-in-an-android-project
Definition at line 31 of file DisplayWhoisActivity.java.
|
protected |
Called when the activity is created.
When the DisplayWhois is created, this method enables the home/up button and sets the view to the activity_display_whois. The activity_display_whois view contains an TextView that is the child of a HorizontalScrollView which is the child of a ScrollView to support scrolling. The output from the whois task is displayed on the TextView
savedInstanceState | The instance state |
Definition at line 46 of file DisplayWhoisActivity.java.
References com.jburto2.androidlookup.MainActivity.WHOIS_INFO.
public boolean com.jburto2.androidlookup.DisplayWhoisActivity.onCreateOptionsMenu | ( | Menu | menu | ) |
Inflate the menu; this adds items to the action bar if it is present.
menu | The menu |
Definition at line 94 of file DisplayWhoisActivity.java.
com.jburto2.androidlookup.DisplayWhoisActivity.onOptionsItemSelected | ( | MenuItem | item | ) |
This ID represents the Home or Up button. In the case of this activity, the Up button is shown. Use NavUtils to allow users to navigate up one level in the application structure. For more details, see the Navigation pattern on Android Design:
http://developer.android.com/design/patterns/navigation.html#up-vs-back
item | The MenuItem |
Definition at line 114 of file DisplayWhoisActivity.java.
|
private |
Set up the android.app.ActionBar, if the API is available. This enables the up/home button to allow users to return to the main screen.
Definition at line 81 of file DisplayWhoisActivity.java.