How to display images from url in StackView Widget with this
<p>I have built a stackview widget for home Screen but i dont know how to load images into it so the user will be able to flip through the images and see different ones.</p>

<p>Here is the code i am using now and this is where the images are suppose to be downloaded and set to the remote View</p>

<p>I dont how to go about doing this and setting it to the remote view to display in the widget. </p>

<p>Here is the code i am using.. i followed the tutorial here on the developers website</p>

<p><a href="http://developer.android.com/resources/samples/StackWidget/index.html" rel="nofollow">http://developer.android.com/resources/samples/StackWidget/index.html</a></p>

<p>public class StackWidgetService extends RemoteViewsService {</p>

<pre><code>@Override
public RemoteViewsFactory onGetViewFactory(Intent intent) {

    return new StackRemoteViewsFactory(this.getApplicationContext(), intent);


}
private static final int mCount = 10;
private List&lt;WidgetItem&gt; mWidgetItems = new ArrayList&lt;WidgetItem&gt;();
private Context mContext;
private int mAppWidgetId;
class StackRemoteViewsFactory implements RemoteViewsService.RemoteViewsFactory{

    public StackRemoteViewsFactory(Context context, Intent intent){

        mContext = context;
        mAppWidgetId = intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, AppWidgetManager.INVALID_APPWIDGET_ID);

    }

    @Override
    public int getCount() {

        return mCount;
    }

    @Override
    public long getItemId(int position) {

        return position;
    }

    @Override
    public RemoteViews getLoadingView() {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public RemoteViews getViewAt(int position) {

        RemoteViews rv = new RemoteViews(mContext.getPackageName(), R.layout.widget_item);
        rv.setTextViewText(R.id.widget_item, mWidgetItems.get(position).text);

        Bundle extras = new Bundle();
        extras.putInt(stackWidgetProvider.EXTRA_ITEM, position);
        Intent fillnIntent = new Intent();
        fillnIntent.putExtras(extras);
        rv.setOnClickFillInIntent(R.id.widget_item, fillnIntent);

        //Do heavy lifting here, Downloading images from a network or website.

        return rv ;
    }

    @Override
    public int getViewTypeCount() {
        // TODO Auto-generated method stub
        return 0;
    }

    @Override
    public boolean hasStableIds() {
        // TODO Auto-generated method stub
        return false;
    }

    @Override
    public void onCreate() {
        // TODO Auto-generated method stub

    }

    @Override
    public void onDataSetChanged() {
        // TODO Auto-generated method stub

    }

    @Override
    public void onDestroy() {
        // TODO Auto-generated method stub

    }


}
</code></pre>

<p>}</p>
