Load Image from URL (Internet) in Android

In this tutorial, you will learn to load image from internet (url) in android imageview. Image won’t load just by adding URL. To load image from internet, you have to know little bit java code. Here is the easiest way to load image in android ImageView from URL.

How to Rotate an Image in Android
How to Make a Phone Call in Android
Android Material Design with Design Support Library

Android Example: How to Load Image from Internet (URL) in Android

This is the step by step guide to load image in android ImageView from URL/Internet.

Create a new Android Project

Application Name: Load Image From Internet
Company Domain: viralandroid.com
Package Name: com.viralandroid.loadimagefrominternet
Minimum SDK: Android 2.2 (API 8 Froyo)

XML Layout File

Java Activity File

You can add any image URL instead of above.

Add Internet Permission in AndroidManifest.xml File

To load image from internet/url you have to add internet permission in your AndroidManifest.xml file.
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
AndroidManifest.xml File

Strings.xml File
Default content of strings.xml file.

Now, run your application, your application looks like this.

Load Image from URL (Internet) in Android
Image From URL

Tutorial 215389000325937398
Home item