If you display the exception message from your IOException
message, you will see
org.jsoup.HttpStatusException: HTTP error fetching URL. Status=500, URL=...
Solution: You need to set the user agent to correspond to the mobile website
Document doc =
Jsoup.connect("http://m.tokobagus.com/search/province").userAgent
("Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko)
Chrome/15.0.874.120 Safari/535.2").get();
More importantly, remember to display those exception messages:
} catch(IOException ioe){
ioe.printStacktrace();
}