loading the image from "PHP Runner" to the ImageView in android -


i have phprunner in device , wamp server difference php runner android , should follows use it:

http://127.0.0.1:8080/ 

i want load image http://127.0.0.1:8080/apps/image.jpg inside imageview using following code:

public class mainactivity extends activity { webview webview; imageview imageview;     @override     protected void oncreate(bundle savedinstancestate) {         super.oncreate(savedinstancestate);         setcontentview(r.layout.activity_main);     webview = (webview) findviewbyid(r.id.webview);     webview.setbackgroundcolor(color.rgb(88,255,114));     imageview = (imageview) findviewbyid(r.id.imageview);      imageview.setimageuri(uri.parse("http://127.0.0.1:8080/apps/image.jpg"));      } 

but can not load image.what solution?

imageview not load images on network. need either download or use libraries glide, picasso or fresco.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -