Note that there are some explanatory texts on larger screens.

plurals
  1. POShow Urls instead of images Android app
    primarykey
    data
    text
    <p>I'm trying to create a simple app that loading photos from a website (like 9gag). I'm using jSoup and asyncTask. The problem is when I'm running the app it shows me only the urls of the images.. what can I do in order to display the image in the listView and not the urls. XML Prob? Help :-/</p> <p>![Screen Shot]<a href="https://www.dropbox.com/s/moybisjrbdgzjre/Screenshot_2013-04-29-20-09-13.png" rel="nofollow">https://www.dropbox.com/s/moybisjrbdgzjre/Screenshot_2013-04-29-20-09-13.png</a></p> <p>here's my LoadImages class:</p> <pre><code>public LoadImages(ArrayList list, ArrayAdapter adapter) { this.list = list; this.adapter = adapter; } @Override protected Elements doInBackground(String... params) { org.jsoup.nodes.Document doc = null; try { doc =Jsoup.connect("http://mongol.co.il/").get(); return doc.select("img"); } catch (IOException e1) { e1.printStackTrace(); } return null; } @Override protected void onPostExecute(Elements result) { super.onPostExecute(result); int flag=0; //Bitmap bitmap = null; for ( org.jsoup.nodes.Element div : result ) { String bla = div.absUrl("src"); list.add(bla); flag++; if(flag==3) break; } adapter.notifyDataSetChanged(); } </code></pre> <p>Here's also my .xml file:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;ListView android:id="@+id/listview" android:layout_width="match_parent" android:layout_height="match_parent" &gt; &lt;/ListView&gt; &lt;/LinearLayout&gt; </code></pre> <p>Thanks In advance!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    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.
    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