title: Getting serializable extras from Intent producing blank screen for few seconds
body: <p>I want to move from my Splash Screen Activity to Main Activity. In Splash Screen Activity, I'm fetching data from Firebase and store it in ArrayList. After that, I use extras to passing the data to my MainActivity. But, when the activity changes, it shows blank screen for around 3 seconds before the MainActivity started. When I remove my code for getting the bundle from the extras, the Intent works perfectly fine.</p>
  <p>SplashActivity.java</p>
  <pre><code>        Intent intent = new Intent(getApplicationContext(), MainActivity.class);                                      
          intent.putExtra(&quot;itemList&quot;, (Serializable) arrayList);
          startActivity(intent);
          finish();
  </code></pre>
  <p>MainActivity.java (I passed the bundle to fragments)</p>
  <pre><code>        bundle = getIntent().getExtras();
          HomeFragment homeFragment = new HomeFragment();
          homeFragment.setArguments(bundle);
          getSupportFragmentManager().beginTransaction().add(R.id.fragment_container, homeFragment, &quot;home&quot;).commit();
  </code></pre>
  <p>HomeFragment.java</p>
  <pre><code>    @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container,
                               Bundle savedInstanceState) {
          View view = inflater.inflate(R.layout.fragment_home, container, false);
  
          arrayList = new ArrayList();
          arrayList = (List&lt;ItemModel&gt;) getArguments().getSerializable(&quot;itemList&quot;);
  
          return view;
      }
  </code></pre>
  <p>I wonder why would that happen. Is it possible that the data I'm passing are too big (I tried to pass and get the smaller data and it works fine) or something and how should I solve it? Any help will be appreciated, thanks!</p>