hi i make RSS feed program for Android
my problem is that image doesn't appear and give me that error message in the console :
"[WARN][TiDrawableReference( 479)] (main) [387,6928] Unknown image resource type: Object[]. Returning null drawable reference"
my code for that part of image are 2 parts the first are in rss file
var items = xml.documentElement.getElementsByTagName("item"); var data = []; for (var i = 0; i < items.length; i++) { var item = items.item(i); var image; try { var image = item.getElementsByTagName("description").item(0).text; var patt1=/([a-z\-_0-9\/\:\.]*\.(jpg|jpeg|png|gif))/ig; var urlMatch = image.match(patt1); var imagesrc = TiConvert.toString(urlMatch); console.log("reg ex -----------------------" + urlMatch); } catch (e) { image = ''; } data.push({ title: getRssText(item, 'title'), link: getRssText(item, 'link'), pubDate: parseDate(getRssText(item, 'pubDate')), image: urlMatch }); }
and the second are at the view which suppose to view that image and other data :
var imageview = Ti.UI.createImageView({ image: item.image, height: 42, width: 68, left: 5, top: 3 });please if any one can help me . that problem consumed my days one after another and i failed to solve it .
thanks in advance .