title: get image from url and set as relative layout background on android
body: <p>basically what I want to do is, use the url of an image (it doesnt matter if it is downloaded or not) to set the background of relativelayout</p>
  
  <p>I have googled for hours and tried a lot of suggestions but I always end up with errors and app crashes...</p>
  
  <pre><code>if((!modelsArrayList.get(position).isGroupHeader())&amp;&amp;       (modelsArrayList.get(position).isProfBox())) {
              rowView = inflater.inflate(R.layout.prof_header, parent, false);
              TextView titleView = (TextView)     rowView.findViewById(R.id.header);
              titleView.setText(modelsArrayList.get(position).getTitle());
              RelativeLayout rLayout=(RelativeLayout)rowView.findViewById(R.id.ProfHead);
             rLayout.setBackgroundResource("HTTP://URL.HERE");
  </code></pre>
  
  <p>I tried others like this (<a href="http://looksok.wordpress.com/2013/07/06/android-tutorial-download-image-from-the-internet-with-url/" rel="nofollow">http://looksok.wordpress.com/2013/07/06/android-tutorial-download-image-from-the-internet-with-url/</a>), but it didnt work</p>