Should it be :

<service android:name=".MyService">
instead of
<service android:name=".service.MyService">

because the package @name allready includes the "service"

Jiri

Mark Murphy wrote:
> Honest wrote:
>> hello,
>>
>> I tried to create service by following code but in logcat i got
>> following error " Unable to start service intent...." The following is
>> my manifest.xml file.
>>
>>
>> <?xml version="1.0" encoding="utf-8"?>
>> <manifest xmlns:android="http://schemas.android.com/apk/res/android";
>>       package="com.saltriver.service"
>>       android:versionCode="1"
>>       android:versionName="1.0">
>>     <application android:icon="@drawable/icon" android:label="@string/
>> app_name">
>>         <activity android:name=".ServiceExample"
>>                   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>
>>     <service android:name=".service.MyService">
>>
>> <intent-filter>
>>
>>
>> </intent-filter>
>>
>> </service>
>>     <uses-sdk android:minSdkVersion="3" />
>> <uses-permission android:name="android.permission.READ_FRAME_BUFFER"></
>> uses-permission>
>> </manifest>
> 
> Is your service named com.saltriver.service.service.MyService?
> 
> You might try spelling out the full java package on your <service>
> element to see if it clears up your problem.
> 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to