Issue is related to escaping '.'
character.
Change android:pathPattern=".*\.html"
to android:pathPattern=".*\\.html"
'\'
is used as escape character when the string is read from XML. You will need to double-escape it i.e. literal '.'
would be '\\.'