How to get the html of URL in android studio using Ion library


While developing an application using android studio I have faced a problem of downloading the HTML of a URL, I were using HTTP client but  faced a problem that i can’t use this method in main thread so i needed to do it asynchronously in which I have to manage the thread with my code with all the exceptions expected. I were in real need to find a good java library to manage all of the that and i found a good java library called “Ion” that make me able to download the HTML of any URL and many other useful functions like viewing an image inside imageView by providing only the URL of the image which is cool. now lets move the coding part and how it does work! Continue reading