Note that there are some explanatory texts on larger screens.

plurals
  1. POproblem in forming gridview with images in the web
    primarykey
    data
    text
    <p>in my app i am trying to form a grid view from the xml file that been stored in web.</p> <p>Following is my code</p> <pre><code>grid = (GridView)findViewById(R.id.gridView1); imageXMLfn(); grid.setAdapter(new ImageAdapter(this)); private void imageXMLfn() { try { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); factory.setIgnoringComments(true); factory.setCoalescing(true); factory.setNamespaceAware(false); factory.setValidating(false); DocumentBuilder parser = factory.newDocumentBuilder(); URL url = new URL(UserManual.IMAGE_URL); Log.e("ViewImage3",""+UserManual.IMAGE_URL); Document document= parser.parse(new InputSource(url.openStream())); NodeList sections = document.getElementsByTagName("application"); numSections = sections.getLength(); for (int i = 0; i &lt; numSections; i++) { Element section = (Element) sections.item(i); if(section.hasChildNodes()==true) { NodeList section1=section.getChildNodes(); for(int j=0;j&lt;section1.getLength();j++) { if(section1.item(j).hasChildNodes()==true) { for(int k=0;k&lt;section1.item(j).getChildNodes().getLength();k++) { xmlvalue=String.valueOf(section1.item(j).getChildNodes().item(k).getNodeValue()).trim(); arl.add(xmlvalue); } } } } } } catch(Exception e) { System.out.println(e); Log.e("ViewImage Error1",e.getMessage()); } Iterator&lt;String&gt; itr = arl.listIterator(); int z=0,x=0,increment=0; while (itr.hasNext()) { id = itr.next(); img = img+id; z++; } } public class ImageAdapter extends BaseAdapter { private Context myContext; private String[] myRemoteImages = {id}; public ImageAdapter(Context c) { this.myContext = c; } } </code></pre> <p>Either i am getting only the first image stored in that url or else i am not getting any other images</p> <p>Following is the link from which i am trying to get the images</p> <pre><code>http://94.23.207.167/websiteIphone/Admin/XML/Santa.xml </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload