It'd be helpful if you said what error you're getting.

First off, what you've posted isn't valid XML, the service element's
getting closed twice. Take the / out of the opening tag.

Second, if you get an error of "Class .service.MyService does not
exist", try changing your opening service tag to:
<service android:name=".MyService">

String


On Aug 17, 11:44 am, Honest <[email protected]> wrote:
> Hello,
>
> I have created the one class named MyService which extends Service. it
> is in com.saltriver.service package. Now  can some one tell me how i
> should specified it in anroidmanfiest.xml file. The following is
> content of xml file but it is giving error in <service>. so can some
> one tell me what is wrong in it.
>
> <?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" />
> </manifest>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to