Wink Saville’s Blog

January 26, 2008

Android - how to make a local Service

Filed under: Android — wink @ 2:12 pm

In Android local Services my the convince that the thread the run in is the same thread as the thread that created them. To make a local service you change the AndroidManifest.xml <service /> tag so that the process attribute is absent.

So for my TestMc code I changed the manifest <service /> tag from this:

 <service class=”.TestMcService” android:process=”:remote” />

To:

 <service class=”.TestMcService” />

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress