title: failed to read size in logcat error
body: <p>I have a product2 class which contains setter and getter methods.
  I also have two classes activity one of them is viewpager. 
  When I click on the button to move me to the next activity a message comes</p>
  
  <blockquote>
    <p>Unfortunately my app has stopped</p>
  </blockquote>
  
  <p>and when I took a look at the logcat error I saw two lines which are :</p>
  
  <pre><code>10-11 22:08:46.186 965-965/? E/installd: eof
  10-11 22:08:46.186 965-965/? E/installd: failed to read size
  </code></pre>
  
  <p>I do not know what is mean </p>
  
  <p>Is it related to my computer memory?</p>
  
  <p>When I removed this code from the next activity it work perfectly 
  it move me to the next activity but the activity of course is empty because there is no code</p>
  
  <pre><code>ImageView img2;
      ViewPager viewpager;
      private int[] normal = {R.drawable.ii1,R.drawable.i2,R.drawable.i3,R.drawable.i4};
  ArrayList&lt;Product2&gt; listnormal = new ArrayList&lt;&gt;();
          @Override
          protected void onCreate(Bundle savedInstanceState) {
              super.onCreate(savedInstanceState);
              setContentView(R.layout.activity_third);
              viewpager = (ViewPager) findViewById(R.id.view_pager);
  
              for(int i= 0; i&lt; normal.length; i++){
                  listnormal.add(new Product2(i,normal[i]));
  
              }
  
              swipePage swipe = new swipePage(this,listnormal);
  
              viewpager.setAdapter(swipe);
  
          }
  
  
  class swipePage extends PagerAdapter{
  
      LayoutInflater layoutInflater;
      private Context context;
      ArrayList&lt;Product2&gt; list= new ArrayList&lt;&gt;();
  
      public swipePage(Context context, ArrayList&lt;Product2&gt; list) {
          this.context = context;
          this.list = list;
      }
  
  
      @Override
      public int getCount() {
          return list.size();
      }
  
      @Override
      public boolean isViewFromObject(View view, Object object) {
          return (view==(LinearLayout)object);
  
      }
  
  
      @Override
      public Object instantiateItem(ViewGroup container, int position) {
          layoutInflater= (LayoutInflater)context.getSystemService(context.LAYOUT_INFLATER_SERVICE);
          View view = layoutInflater.inflate(R.layout.activity_third,container,false);
          ImageView bigimg = view.findViewById(R.id.imageViewbig);
          TextView numtxt = view.findViewById(R.id.TextView3);
          bigimg.setImageResource(list.get(position).getImgpages());
          numtxt.setText(list.get(position).getNum());
          container.addView(view);
  
          return view;
      }
  
  
      @Override
      public void destroyItem(ViewGroup container, int position, Object object) {
          container.removeView((LinearLayout)object);
  
      }
  }
      }
  </code></pre>