我有这个意图代码:
Intent arbeiten = new Intent(this, arbeiten.class);
startActivity(arbeiten);
但 Eclipse 告诉我:
The constructor Intent(new AdapterView.OnItemClickListener(){}, Class<arbeiten>) is undefined
同一项目中的其他(工作)意图,但其他类看起来像
Intent toolb = new Intent(this, ToolBox.class);
toolb.putExtra("json", json.toString());
startActivity(toolb);
他们正在工作...
“Arbeiten”类看起来像这样:
package XXX;
import android.app.Activity;
import android.os.Bundle;
public class arbeiten extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}