私はこのインテントコードを持っています:
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);
}
}