The text for @string/contains_links is verbatim for what you see on the screen. No special formatting commands or tags are needed within the string.
Step 6: Enabling Web Searches
When you want to provide the user with the ability to perform a web search, you could still use the ACTION_VIEW intent and set up the query strings appropriate to a specific search engine, or if you are content with a Google search, you can simply use the web search Intent: android.content.Intent.ACTION_WEB_SEARCH. Begin by creating an Intent of this type, as follows, within your second Button click handler:
Intent search = new Intent(Intent.ACTION_WEB_SEARCH);
Step 7: Supplying Search Criteria
Often, you want to supply some criteria to search on. You can do this by supplying this information as part of the Intent’s extras. The ACTION_WEB_SEARCH Intent specifically uses the SearchManager.QUERY extra field for the search criteria. For example, to perform the Google search on pygmy goats, you configure the SearchManager.QUERY extra and launch the Browser as follows:
Intent search = new Intent(Intent.ACTION_WEB_SEARCH);
search.putExtra(SearchManager.QUERY, "pygmy goats");
startActivity(search);
When you click on this button, the Browser application (which generally handles HTML content display) is launched to the website you provided.