1
나는 안드로이드와 자바 프로그래밍에 익숙하며, 내 애플 리케이션에서 ActivityNotFoundException을 얻고있다.안드로이드 : ActivityNotFoundException
public void onItemClick(AdapterView<?> parent, View view,
int position, long id) {
// TODO Auto-generated method stub
String selectedItem = (String) lvCheckLists.getItemAtPosition(position);
Intent i= new Intent("com.teamvdb.checklist.checkListActivity");
// Package name and activity
// Intent i= new Intent(MainActivity.this,SecondActivity.Class);
// Explicit intents
i.putExtra("selectedItem",selectedItem);
// Parameter 1 is the key
// Parameter 2 is your value
startActivity(i);
Intent openCheckListActivity = new ntent("com.teamvdb.checklist.checkListActivity");
startActivity(openCheckListActivity);
}
});
}
그리고 여기 내 안드로이드 매니페스트가 : 여기
는 이러한 활동이 호출되는 두 배 내가 알아 내려고 마지막 20 분 동안 한
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.teamvdb.checklist"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="21" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity android:name=".MainActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".checkListActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.MAIN" />
</intent-filter>
</activity>
</application>
</manifest>
무엇 그것으로 잘못되었지만 나는 그 문제를 볼 수 없다. 예, 클래스의 철자가 정확합니다.
사이드 노트 : 자바에서 클래스 이름은 항상 대문자로 시작해야하므로 CheckListActivity – Ridcully
checkListActivity 매니페스트 선언에서''블록을 제거하고 Haresh Chhelana의 대답. –
Squonk