Fehler: "Cannot make a static reference to the non-static Methode startActivity(Intent) vom Typ Activity"

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 
                    }
            });

Bin ich immer den folgenden Fehler an startActivity Zeile:
"Cannot make a static reference to the non-static method startActivity(Intent) from the type Activity"

Bitte helfen.

InformationsquelleAutor shripal | 2011-04-08

Schreibe einen Kommentar