Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

5. Favorite Twitter® Searches App > 5.5. Building the App

5.5. Building the App

Figures 5.135.23 implement the Favorite Twitter Searches app in the single class FavoriteTwitterSearches, which extends Activity.


 1   // FavoriteTwitterSearches.java
 2   // Stores Twitter search queries and tags for easily opening them
 3   // in a browser.
 4   package com.deitel.favoritetwittersearches;
 5
 6   import java.util.Arrays;
 7
 8   import android.app.Activity;
 9   import android.app.AlertDialog;
10   import android.content.Context;
11   import android.content.DialogInterface;
12   import android.content.Intent;
13   import android.content.SharedPreferences;
14   import android.net.Uri;
15   import android.os.Bundle;
16   import android.view.LayoutInflater;
17   import android.view.View;
18   import android.view.View.OnClickListener;
19   import android.view.inputmethod.InputMethodManager;
20   import android.widget.Button;
21   import android.widget.EditText;
22   import android.widget.TableLayout;
23   import android.widget.TableRow;
24


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial