unable to start service intent ~~ not found

service를 사용하려고 하는데 not found 라는 오류가 났을 경우

AndroidManifest.xml 에 해당 service를 사용할 것이라고 등록해야함

<?xml version=”1.0″ encoding=”utf-8″?>

<manifest xmlns:android=”http://schemas.android.com/apk/res/android”

      package=”exam.Player”

      android:versionCode=”1″

      android:versionName=”1.0″>

    <application android:icon=”@drawable/icon” android:label=”@string/app_name”>

        <activity android:name=”.Player”

                  android:label=”@string/app_name”>

            <intent-filter>

                <action android:name=”android.intent.action.MAIN” />

                <category android:name=”android.intent.category.LAUNCHER” />

            </intent-filter>

        </activity>

<service android:name=”.PlayerService”>

</service>

    </application>

    <uses-sdk android:minSdkVersion=”8″ />

</manifest> 

Leave a Reply

Your email address will not be published. Required fields are marked *