I am trying to build an android application. I want to retrieve data from a website (.php) using JSON. So far I am able to get the recent post's title, URL and the the respective content but how can I retrieve image of that particular post? Thank you.
this is a piece of the code:
private TextView techPostCount, techPostTitle, techPostUrl, techPostContent, techPostAuthor
private ImageView techImages;
.
.
.
int jsonArrLength = jsonMainNode.length();
for(int i=0; i < jsonArrLength; i++) {
JSONObject jsonChildNode = jsonMainNode.getJSONObject(i);
String postTitle = jsonChildNode.getString("slug");
String postUrl = jsonChildNode.getString("url");
String postContent=jsonChildNode.getString("content");
String postImage=jsonChildNode.getString("author");
techcPostCount.setText("Number of posts:" +postCount);
techPostTitle.setText("Page :" +postTitle);
techPostUrl.setText("Page URL:" +postUrl);
techPostContent.setText("Article:"+ postContent);
techclinchPostImage?????("Picture:"+ ????);