Thursday, June 17, 2010

Re: [android-developers] Unable To run Service

How can I access another service that's inside another package ,as when I did that using the normal way of updating the intent to the new package using

i.setclassName(packageName,ClassName); && updating the AndroidManifest.xml file with the new name ,,I got unable to start the service intent error as previous?

Do i forget something that has to be done?

On Wed, Jun 16, 2010 at 11:55 PM, tarek attia <tarek.m.attia@gmail.com> wrote:
The problem was this in the AndroidManifest.xml :SS

I was registering the service as following 

<Service android:enabeled="true" android:name".MyService"/>

and there was no problem in the compilation,,,I changed it to a lower-case letter not upper-case letter it worked fine 

<service android:enabeled="true" android:name".MyService"/>


On Tue, Jun 15, 2010 at 10:35 PM, Mark Murphy <mmurphy@commonsware.com> wrote:
On Tue, Jun 15, 2010 at 2:10 PM, tarek attia <tarek.m.attia@gmail.com> wrote:
> The Same Error ....................................
> What could cause this?

I would recommend starting with an example that is known to work, then
determining where the differences are.

Here is an example of a local service:

http://github.com/commonsguy/cw-android/tree/master/Service/WeatherPlus/

--
Mark Murphy
CommonsWare
mmurphy@commonsware.com
http://commonsware.com

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en



--
tarek



--
tarek

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment