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) ...

Get Hello, Android, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.