O'Reilly logo

Hello, Android, 4th Edition by Ed Burnette

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Suggest Task

For completeness, here’s the definition of SuggestTask:

suggest/src/main/java/org/example/suggest/SuggestTask.java
 
package​ org.example.suggest;
 
 
import​ java.io.IOException;
 
import​ java.net.HttpURLConnection;
 
import​ java.net.URL;
 
import​ java.net.URLEncoder;
 
import​ java.util.LinkedList;
 
import​ java.util.List;
 
 
import​ org.xmlpull.v1.XmlPullParser;
 
import​ org.xmlpull.v1.XmlPullParserException;
 
 
import​ android.util.Log;
 
import​ android.util.Xml;
 
 
public​ ​class​ SuggestTask ​implements​ ​Runnable​ {
 
private​ ​static​ ​final​ ​String​ TAG = ​"SuggestTask"​;
 
private​ ​final​ MainActivity suggest;
 
private​ ​final​ ​String​ original;
 
 
SuggestTask(MainActivity context, ​String​ original) ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required