2
ListViewActivity에서 두 번째 활동을 호출하려고합니다. 나는 이것을 시도했다두 번째 호출 활동 Android
Intent intent = new Intent(this, Activity2.class);
startActivity(intent);
그러나 그것은 doesnt한다 일한다, maybee 당신은 나를 도울 수있다. 이클립스는 다음과 같이 말합니다 :
The constructor Intent(new AdapterView.OnItemClickListener(){}, Class<Activity2>) is undefined
같은 결과로 이것을 시도했습니다. 당신의 도움이
을하지 부모 활동 클래스. Arhimed가 보여 주듯이, 대신에 'YourCurrentActivity.this'를 사용하여 어떤'this '를 사용하려고하는지 명확히해야합니다. –
감사합니다. 이제 작동합니다! =) – Miguel13366