4.2.2. Adding a Favorite Search

Touch the top EditText, then enter from:deitel as the search query—the from: operator locates tweets from a specified Twitter account. Figure 4.3 shows several Twitter search operators—multiple operators can be used to construct more complex queries. A complete list can be found at

Image

Fig. 4.3 | Some Twitter search operators.

In the bottom EditText enter Deitel as the tag for the search query (Fig. 4.4(a)). This will be the short name displayed in a list in the app’s Tagged Searches section. Touch the save (Image) button to save the search—the tag “Deitel” appears in the list under the Tagged Searches heading (Fig. 4.4(b)). When you save a search, the soft keyboard is dismissed so that you can see your list of saved searches—you’ll learn how to programmatically hide the soft keyboard in Section 4.5.5.

Image

a) Entering a Twitter search and search tag

Image

b) App after saving the search and search tag

Fig. 4.4 | Entering a Twitter search.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset