i am gettin error "Cannot make a static reference to the non-static method startActivity(Intent) from the type Activity"
<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>please give me solution i am getting error at startActivity line getting error like "Cannot make a static reference to the non-static method startActivity(Intent) from the type Activity
"</p>
