intent = new Intent().setClass(this, Bookmark.class);
spec = tabHost.newTabSpec("bookmark").setIndicator("Bookmark", res.getDrawable(R.drawable.bookmark)).setContent(intent);
Log.d("duck","spec :" + spec);
tabHost.addTab(spec);
여기에서 오류 납니다. 오류나서 그다음으로 넘어가지 않고 try catch문으로 만들어서 보면 오류 내용이
ActivityNotFoundException 라고 나오는데요.. 이상하게 AndroidManifest에 추가를 다해주었는데도 오류남,,
다음으로 넘어갈려면 어떻게 해야할까요?
intent = new Intent().setClass(this, Route.class);
spec = tabHost.newTabSpec("route").setIndicator("Route", res.getDrawable(R.drawable.route)).setContent(intent);
tabHost.addTab(spec)
<AndroidManifest>에 쓴내용 머가 틀렸는지 이해못하겠음.. 도와주세요..
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.PohangBus"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".PohangBus" android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar">
<activity android:name=".Bookmark"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar">
</activity>
<activity android:name=".Information"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar">
</activity>
<activity android:name=".Route"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar">
</activity>
<activity android:name=".Station"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar">
</activity>
<activity android:name=".Town"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar">
</activity>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<uses-sdk android:minSdkVersion="8" />
</manifest>
아 해결했서요 저 삽질한듯해요 이것들의 위치가 애매해서 오류난듯해요,.
위에있는 포항버스 부분의 activity가 끝나는 지점에 이것들을 넣으니까 오류없이 잘되내요..
<activity android:name=".Bookmark"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar">
</activity>
<activity android:name=".Information"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar">
</activity>
<activity android:name=".Route"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar">
</activity>
<activity android:name=".Station"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar">
</activity>
<activity android:name=".Town"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar">
</activity>




내부클래스거나 그런건가요...?