My Android app start with a Service.
I am looking at URL schemes. While I had no problem setting this up (data android:scheme="abc"), it appears calling "abc://" from the browser does not work, and I can't find anything in Logcat.
<service
android:name="com.xyz.abcService"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:enabled="true"
android:exported="true">
<intent-filter>
<action android:name="com.google.android.glass.action.VOICE_TRIGGER" />
</intent-filter>
<meta-data
android:name="com.google.android.glass.VoiceTrigger"
android:resource="@xml/voice_trigger_start" />
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.LAUNCHER" />
<data android:scheme="abc" />
</intent-filter>
</service>
Prior to adding an intent-filter to the Manifest file, it looked like:
<service
android:name="com.xyz.abcService"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:enabled="true"
android:exported="true">
<intent-filter>
<action android:name="com.google.android.glass.action.VOICE_TRIGGER" />
</intent-filter>
<meta-data
android:name="com.google.android.glass.VoiceTrigger"
android:resource="@xml/voice_trigger_start" />
</service>
Even when removing the voice trigger, I could not launch abc.
That being said, I had no issue when calling an Activity.
Is anybody aware of any restriction around that?