I have an application that wants to handle SGF files. It has these filters in the manifest:
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="http"/>
<data android:host="*"/>
<data android:pathPattern=".*\\.sgf"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="http"/>
<data android:mimeType="application/x-go-sgf"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="file"/>
<data android:mimeType="*/*" />
<data android:host="*" />
<data android:pathPattern=".*\\.sgf"/>
</intent-filter>
The idea is to handle SGF files opened in the browser or from a file. This was working until recently. I'm not sure exactly when it stopped working, but it wasn't because of a code change. I have another application that is trying to start the activity and it's getting an exception:
No Activity found to handle Intent { act=android.intent.action.VIEW dat=file:///mnt/sdcard/gogrinder/Mastering%20the%20Basics/Vol.%202%20-%20One%20Thousand%20and%20One%20Life-and-Death%20Problems/6%20-%20Five-move%20problems%20-%20Black%20to%20kill/prob144.sgf }
Shouldn't this intent match one of the filters above? Opening an SGF file from the browser or file explorer does cause my activity to start, but doing it programmatically as above doesn't work anymore.