Я изучаю пример RemoteService в Android APISample. в
файл манифеста, он объявляет службу следующим образом:
У меня вопрос, как я могу указать, чтобы служба была «автозапускать», т.е.
он начинается всякий раз, когда начинается телефон?
<service android:name=".app.RemoteService" android:process=":remote" >
<intent-filter>
<!-- These are the interfaces supported by the service, which
you can bind to. -->
<action
android:name="com.example.android.apis.app.IRemoteService" />
<action
android:name="com.example.android.apis.app.ISecondary" />
<!-- This is an action code you can use to select the service
without explicitly supplying the implementation class. -->
<action android:name="com.example.android.apis.app.REMOTE_SERVICE" />
</intent-filter>
</service>