일단 로그캣 부터 보여드릴게요.
02-05 16:33:26.291: WARN/ActivityManager(59): Unable to start service Intent { cmp=exam.AndroidFirst/.NewService }: not found
Intent intent = new Intent(AndroidFirst.this, NewService.class);
startService(intent);
이 부분에서 서비스 시작을할때 intent를 찾지를 못하는데요....특별히 이상한점이 없는데 왜 이럴까요..
AndroidFirst.java(버튼등 UI) -> startService(intent);
NewService.java(서비스관련)
- AndroidManifest.xml -
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="exam.AndroidFirst" android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".AndroidFirst" android:label="@string/app_name">
<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" />
<service android:name="NewService" android:enabled="true">
<intent-filter>
<action android:name="NewService" />
</intent-filter>
</service>
</manifest>



