title: Error: "Cannot make a static reference to the non-static method startActivity(Intent) from the type Activity"
body: <pre><code>private int pos = position;
                      @Override
                      public void onClick(View v) {
                          Toast.makeText(context, "Click-" + String.valueOf(pos), Toast.LENGTH_SHORT).show(); 
                          iBean = (InboxBean)result.get(position);
                          ConstantData.inbox_subject = iBean.subject;
                          ConstantData.inbox_body = iBean.body;
                          ConstantData.inbox_postDate = iBean.postdate;
  
                          startActivity(new Intent(InboxActivity.this,InboxDetailActivity.class));//getting error at startActivity 
                      }
              });
  </code></pre>
  
  <p>I am getting the following error at startActivity line: 
  <code>"Cannot make a static reference to the non-static method startActivity(Intent) from the type Activity"</code> </p>
  
  <p>Please help.</p>