Intent i = new Intent(this, MyService.class);
startService (i);
(where 'this' is your Context)
On Tue, Jun 15, 2010 at 5:30 PM, tarek attia <tarek.m.attia@gmail.com> wrote:
The Service is registered in the AndroidManifest.xml ....and the intent I use is just simple :-Intent i = new Intent();
iGPS_service.setClassName("com.example", "MYService");Where might be the error?also in the logCat I see these errors :-resources don't contain package for resource number ,,does that relate to this?--On Tue, Jun 15, 2010 at 6:08 PM, Mark Murphy <mmurphy@commonsware.com> wrote:
Either your service is not registered in AndroidManifest.xml, or yourOn Tue, Jun 15, 2010 at 11:06 AM, tarek attia <tarek.m.attia@gmail.com> wrote:
> Hi all,,
> I have an activity that contains a button in it,and once this button is
> clicked I start service ,but each time i press the button no service is
> started and this message appear in the LogCat
>
> Unable to start service intent {Package name}: Not found
Intent that you are using to start the service is flawed.
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
--
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
--
YuviDroid
http://android.yuvalsharon.net
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