新しいアクティビティを開始するために Class オブジェクトを作成しています。しかし、問題は私がタイプするときです
Class ourclass = new Class.__
クラスが認識されず、スーパークラス「クラス」のメソッドが使えません。クラスは生の型だと言います。クラス名を渡したい「forName()」メソッドを使いたいので、どの型に代入すればいいですか?ここにコードがあります
protected void onListItemClick(ListView l, View v, int position, long id) {
// TODO Auto-generated method stub
super.onListItemClick(l, v, position, id);
try
{
Class ourclass =Class.__ // The suggestions for static functions doesn't popup, and I get errors
//Intent myintent = new Intent();
}
catch(ClassNotFoundException e)
{
e.printStackTrace();
}
}
}
よろしく。