Good for connecting to REST API's, HTML parsing, and many other uses. Using this library is meant to be easy:
1. Create a class which implements OnProgressUpdate
public class SampleClass implements OnProgressUpdate {
@Override
public void onUpdate(Integer percentProgress) {
}
@Override
public void onUpdateFailure() {
}
@Override
public void onSuccess(StringBuilder result) {
}
@Override
public void onFailure() {
}
}
}
- Instantiate DownloadWebPage object
DownloadWebPage webPage = new DownloadWebPage(new SampleClass(), myUrl);
- Call .downloadHtml() from the DownloadWebPage
webPage.downloadHtml();
**Apps that use this library**:
https://play.google.com/store/apps/details?id=org.fortschools.app