title: Activity not getting started
body: <p>I am creating a hashmap and passing it to another activity
  here is my code </p>
  
  <pre><code>bt6.setOnClickListener(new OnClickListener() {          
      @Override
      public void onClick(View v) {
          Intent intent = new Intent(gkwebbrowserActivity.this, Icons.class);
          intent.putExtra("hashmap", orderMap);
          try {
              startActivity(intent);
          } catch (Exception e) {
              e.printStackTrace();
          }
      }
  });
  </code></pre>
  
  <p>And in my second activity I am creating set of image buttons and setting image bitmap stored in hashmap here is code for second activity</p>
  
  <pre><code>public class Icons extends Activity {
      GridLayout gl;
      ImageButton imb1;
      HashMap&lt;Integer, Bitmap&gt; ordermap;
      int i;
      /* (non-Javadoc)
       * @see android.app.Activity#onCreate(android.os.Bundle)
       */
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.icon);
                  try {
               ordermap= new HashMap&lt;Integer, Bitmap&gt;();
               ordermap = (HashMap&lt;Integer, Bitmap&gt;) getIntent().getSerializableExtra("hashmap");
          } catch (ClassCastException e) {
              e.printStackTrace();
          }
                  gl=(GridLayout)findViewById(R.id.layout);
                  i=ordermap.size();
                  gl.setUseDefaultMargins(true);
                  gl.setColumnCount(2);
                  gl.setRowCount(i/2);
  
                   Iterator entries = ordermap.entrySet().iterator();
                   while (entries.hasNext()) {
                     Entry thisEntry = (Entry) entries.next();
                        imb1 = new ImageButton(this);
                        imb1.setImageBitmap((Bitmap)thisEntry.getValue());
                        gl.addView(imb1); 
                    }
      }
  }
  </code></pre>
  
  <p>But the second activity is not getting started and first activity crashes after calling second acivity.I am storing bitmaps in hashmap after  that I am calling second activity.Can anybody tell me what is the problem and how to remove it 
  This is logcat</p>
  
  <pre class="lang-none prettyprint-override"><code>D/dalvikvm(925): GC_CONCURRENT freed 429K, 8% free 10618K/11463K, paused 8ms+4ms
  D/Capturing screenshot of webview(925): First screenshot
  D/dalvikvm(925): GC_FOR_ALLOC freed 4K, 8% free 10614K/11463K, paused 76ms
  I/dalvikvm-heap(925): Grow heap (frag case) to 11.249MB for 855616-byte allocation
  D/dalvikvm(925): GC_CONCURRENT freed &lt;1K, 8% free 11450K/12359K, paused 4ms+11ms
  W/EGL_emulation(925): eglSurfaceAttrib not implemented
  E/JavaBinder(925): !!! FAILED BINDER TRANSACTION !!!
  </code></pre>