I would like to dynamically add some images from this page to the rows from my table.
This is my code so far:
TableLayout tableView = (TableLayout) findViewById(R.id.tableView);
TableRow row = new TableRow(this);
im = new ImageView(this);
row.addView(im, new TableRow.LayoutParams(50, 50));
tableView.addView(row, new TableLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
Do you have an API from golfnews?
My norwegian is a bit rusty to be honest. So I can't really search around on the page.
Do you have any code for fetching the news? Or just one row in a tableview with an rss button? More or less.
You have as I see it three options, either use their api if they have one. You probably need to talk to them.
Use the API, should give you image in base64 or similar if they have one.
Use the RSS feed to fetch an index of the news and then parse each page and download the image in a temporary folder.
Parse the homepage of golfnews.no and download the different pictures/cache them on the device.
For parsing homepages check the answers to this question: Parse HTML in Android