I have pageAdapter created in mainActivity

```
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    getWindow().requestFeature(Window.FEATURE_ACTION_BAR);
    setContentView(R.layout.activity_main);

    mAppSectionsPagerAdapter = new AppSectionsPagerAdapter(getSupportFragmentManager());
    mAppSectionsPagerAdapter.setContext(this);

    try {
        final ActionBar actionBar = getActionBar();

        actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);

        mViewPager = (ViewPager) findViewById(R.id.pager);
        mViewPager.setAdapter(mAppSectionsPagerAdapter);
        mViewPager.setOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() {
            @Override
            public void onPageSelected(int position) {
                actionBar.setSelectedNavigationItem(position);
            }
        });

        for (int i = 0; i < mAppSectionsPagerAdapter.getCount(); i++) {
            actionBar.addTab(
                    actionBar.newTab()
                            .setText(mAppSectionsPagerAdapter.getPageTitle(i))
                            .setTabListener(this));
        }
    }
    catch (Exception e)
    {
        Log.d("myLOG", e.toString());
    }

```

As well i have SingleItemActivity which opens when i click on listViewItem:

```
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
                            Intent intent = new Intent(getActivity(), SingleItemActivity.class);
                            intent.putExtra("id", id);
                            intent.putExtra("listViewID", 1);
                            startActivity(intent);

```

I have 2 lists in 2 tabs and when I tap on some item in 1st list - it opens normally, but when I open a second tab and tap on some item from where android talks me:

```
The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 2, found: 1

```

Ok, I was change getCount method to:

```
@Override
        public int getCount() {
            notifyDataSetChanged();
            return Cache.jsonData[listViewID].length();
        }

```

So, when I try to open item from any list android shows me :

```
Throwing OutOfMemoryError "Failed to allocate a 28 byte allocation with 4 free bytes and 4B until OOM"

```

Someone can help? Thanks for reading my bad English))