Question: So the documentation mentions that it is better to install from source, then build a pip package. Why is this recommended over doing a direct pip install using the wheel file provided on the downloads page? [here](https://www.tensorflow.org/versions/r0.9/get_started/os_setup.html#pip-installation) 

I tried the direct pip install and then runnning some scripts in the inception folder.This results in errors with bazel not finding some of the dependencies. I am guessing this is related to not building tensorflow from source, but I can't figure out why this is the case. Any pointers? Thanks!

Answer: 
As i understand, you want both image and text to be scrolled, and you need indicator at the bottom. 

So you change your `PagerAdapter` to sth like this:

```
public class ImagePagerAdapter extends PagerAdapter {
    private int[] mImages ;
    private Context mContext;

    public ImagePagerAdapter(Context context, int[] mImages) {
        mContext = context;
        this.mImages = mImages;
    }

    @Override
    public Object instantiateItem(ViewGroup container, int position) {
        LayoutInflater inflater = LayoutInflater.from(mContext);
        ViewGroup layout = (ViewGroup) inflater.inflate(R.layout.your_layout_with_image_and_text,container,false);

        ImageView imageView = (ImageView) layout.findViewById(R.id.your_image_view);
        TextView textView=(TextView)layout.findViewById(R.id.your_text_view)
        //.. load image and text you got from constructor
        container.addView(layout, 0);
        return layout;
    }

    public int getCount() {
        if(mImages!=null)
            return mImages.length;
        else
            return 0;
    }
    @Override
    public boolean isViewFromObject(View view, Object object) {
        return view == object;
    }
    @Override
    public void destroyItem(ViewGroup collection, int position, Object view) {
        collection.removeView((View) view);
    }
}

```

For indicator, use [this](https://github.com/JakeWharton/ViewPagerIndicator/blob/master/library/src/com/viewpagerindicator/CirclePageIndicator.java) and put it below `ViewPager` in xml

```
<your_package.CirclePageIndicator
            android:id="@+id/indicator"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:fillColor="@color/primary_color"
            app:pageColor="@color/white"
            app:strokeColor="@color/primary_color"
            android:padding="4dp" />

```
Try this way,you need to create array for texts,

```
private int imageArr[] = { R.drawable.f, R.drawable.g, R.drawable.h,
                              R.drawable.i, R.drawable.j};  

private String[] stringArray = new String[] { "first", "sec","third","fourth","fifth"};

```

initialize your adapter

```
adapter = new ImagePagerAdapter(this, imageArr, stringArray );

```

make your adapter like

```
int imgArray [];
String[] stringArray;
public ImagePagerAdapter(Activity act, int[] imgArra, String[] stringArr) {
    activity = act;
    imgArray = imgArra;
    stringArray = stringArr;
}

```

then get the position

```
txt.setText(stringArray[position]);

```

See [this](http://www.androidbegin.com/tutorial/android-viewpager-gallery-images-and-texts-tutorial/) for more