There is a service project without activity . The service will launch another application.
In the book of this example it is written: We register the service in the manifest and add an IntentFilter with action = "testservice" .
Where to add a filter if there is no activity section in manifest ?
Manifest:
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.denis.testselfservice"> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme"> <service android:name=".MyService" android:enabled="true" android:exported="true"></service> </application>