I encountered the following problem: I remove the url in on the page from the database, the image is displayed in the browser, but not in the debug apk on the device. If you strictly set the link in src, then everything works. What am I doing wrong?

Js:

var anons = []; newsHandler.loadNews(displayNews); function displayNews(results) { var length = results.rows.length; for (var i = 0; i < length; i++) { var item = results.rows.item(i); anons.push('<div class="news-item card"><div class="image"><img src="' + item.img + '"></div><h2>' + item.title + '</h2><p>' + item.content + '</p><div class="news-panel"><span>' + item.date + '</span><a href="news-item.html?id='+ item.id +'"><img src="img/right-chevron.svg" class="more"></a></div></div>'); } news = document.getElementById('news'); for (i = 0; i < 5; i++) { news.innerHTML += anons[i]; } } 

Handler:

 loadNews: function (displayNews) { databaseHandler.db.readTransaction( function (tx) { tx.executeSql( "select * from news", [], function (tx, results) { displayNews(results); }, function (tx, error) { console.log("Error while selecting news " + error.message); } ); }, function (error) {}, function () {} ); } 

    0