XDK - How to load an image from an URL in android using img tag

MyName

I made my app in XDK, but until now I was using it purely online, in a server. Now I want to 'convert' it into an android app. The main problem i'm having is that in some areas of this app, I need to import an image from an URL, like so:

<img ng-src="https://i.ytimg.com/vi/3YJpUROvQAk/maxresdefault.jpg">

But in my android device, all images do not load. Is there any way to load an image from an URL into a img tag with XDK Android?

xmnboy

This is generally not a good idea, because it means you are dependent on the presence of a good and working Internet connection when your app runs. This cannot be guaranteed:

  • the device network connection may be slow or off
  • using the network to load these images each time you run uses valuable (and potentially expensive) data on your customer's data plan
  • lack of a connection can, at the worst, block your app so it appears to be hung

If you want to do what you are attempting to do you'll need to make sure your whitelist is configured to include access to the locations from which you are attempting to load the image. This is probably why it is failing.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Load images using html <img> tag from Android expansion file

From Dev

Load Image in <img> tag using php

From Dev

How to display an image in android ImageView from the <img> tag

From Dev

Extract image src from <img>tag in android

From Dev

Extract image src from <img>tag android

From Dev

Image load from url in android

From Dev

android load image from url not same load image from file

From Dev

how to load image from url and share that image?

From Dev

Load an external image in <img> tag in a Chrome App

From Dev

Load image from url in notification Android

From Dev

android fast load image from url

From Dev

How to put image link in img tag using ajax

From Dev

How to prevent an <img> tag from loading its image?

From Dev

How to crop the image created with <img> tag from top and bottom with percentage

From Dev

Umbraco - How to display an image from a media picker in the src of an IMG tag?

From Dev

How to load a image from a URL into a viewpager

From Dev

How to load an image from URL with Unity?

From Dev

How to show a image from a url and load it into a UIImageView

From Dev

How to load an image from URL with Unity?

From Dev

How to load image from URL on watchos 2?

From Dev

Remove image tag from HTML string using image url

From Dev

How to Replace src Attribute of <img> Tag from String in Android

From Dev

How to remove inline style from img tag using JQuery?

From Dev

How to remove inline style from img tag using JQuery?

From Dev

How to output an IMG tag from XML using XSLT

From Dev

How to get the img elements from within a div tag using JavaScript?

From Dev

embedding an image in stylesheet instead of using img tag

From Dev

Display image grid using img tag

From Dev

Magnific-popup: how to get image url from <img src="...">?

Related Related

  1. 1

    Load images using html <img> tag from Android expansion file

  2. 2

    Load Image in <img> tag using php

  3. 3

    How to display an image in android ImageView from the <img> tag

  4. 4

    Extract image src from <img>tag in android

  5. 5

    Extract image src from <img>tag android

  6. 6

    Image load from url in android

  7. 7

    android load image from url not same load image from file

  8. 8

    how to load image from url and share that image?

  9. 9

    Load an external image in <img> tag in a Chrome App

  10. 10

    Load image from url in notification Android

  11. 11

    android fast load image from url

  12. 12

    How to put image link in img tag using ajax

  13. 13

    How to prevent an <img> tag from loading its image?

  14. 14

    How to crop the image created with <img> tag from top and bottom with percentage

  15. 15

    Umbraco - How to display an image from a media picker in the src of an IMG tag?

  16. 16

    How to load a image from a URL into a viewpager

  17. 17

    How to load an image from URL with Unity?

  18. 18

    How to show a image from a url and load it into a UIImageView

  19. 19

    How to load an image from URL with Unity?

  20. 20

    How to load image from URL on watchos 2?

  21. 21

    Remove image tag from HTML string using image url

  22. 22

    How to Replace src Attribute of <img> Tag from String in Android

  23. 23

    How to remove inline style from img tag using JQuery?

  24. 24

    How to remove inline style from img tag using JQuery?

  25. 25

    How to output an IMG tag from XML using XSLT

  26. 26

    How to get the img elements from within a div tag using JavaScript?

  27. 27

    embedding an image in stylesheet instead of using img tag

  28. 28

    Display image grid using img tag

  29. 29

    Magnific-popup: how to get image url from <img src="...">?

HotTag

Archive