Hi all,
I want to call a Service from an Activity but I'm having some problems
with concepts surely. I briefly describe the steps I'm following to do
this:
1.- I call the Service from the Activity using:
startService(new Intent("com.goldberg.DETECTED"));
2.- I have to declare my service on the Manifest and bound it with the
Intent. So I add the following code to the Manifest:
<service android:name=".Player">
<intent-filter>
<action android:name="com.goldberg.DETECTED" />
<category
android:name="android.intent.category.DEFAULT" />
</intent-filter>
</service>
3.- I code on my service the onCreate(), with the actions to do, and
the onDestroy() methods.
When the Activity calls startService the Service is not started and I
get no log entries on the LogCat. I'm afraid there is some issue
related with the Intent or some step that i'm not considering...
Thanx,
Pablo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---