Android's intent-filter matches files regardless of their extension -


I want my app to be able to open .src files with XML content . It works partially; There is a problem that I can not solve: It seems that Android has not done the android: pathPattern when the account matches. My Intent-Filter looks like this:

  & lt; Intro-filter & gt; & Lt; Action Android: name = "com.google.android.apps.drive.DRIVE_OPEN" /> & Lt; Action Android: name = "android.intent.action.VIEW" /> & Lt; Category android: name = "android.intent.category.DEFAULT" /> & Lt; Data Android: Host = "*" Android: Mimetype = "Text / XML" Android: Pathparents = ". * \\. Src" /> & Lt ;! - Path pattern does not match dots correctly: http://stackoverflow.com/q/3400072/44089 - & gt; & Lt; Data Android: pathPattern = ". * \\ .. * \\ .. * \\. Src" /> & Lt; Data Android: Pathpad tern = ". * \\ .. * \\ .. * \\ .. * \\. Src" /> & Lt; Data Android: Pathpit = ". * * \\ .. * \\ .. * \\ .. * \\ .. * \\. Src" /> & Lt; / Intent-Filter & gt;   

Before I add android: mimeType = "text / xml" , virtually every 'visual' action matched my app, that means my app In the application selector, even though I wanted to see the contact, fortunately, there was some help in adding filter to mimeType But still, pathPattern does not seem to change anything in the manner of filtering my intentions.

I have seen tens of tutorials about this and the code is the same. This should be something weird, unusual. What am I doing wrong? I would be grateful for any ideas or suggestions.

quote:

These features are meaningful, if the plan and Host attributes are also specified for the filter.

You do not appear for a plan.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -