android - Unable to get app to handle file extension -


I have the file extension *. I am trying to write an app to handle MPB . I have the following AndroidManifest.xml :

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Manifest xmlns: Android = "http://schemas.android.com/apk/res/android" package = "package.etc.android" android: versionCode = "1" Android: versionName = "1.0" & gt; ... ... & lt; Application ... ... & lt; Receiver Android: name = ". FileReceiver" & gt; & Lt; Intent-Filter & gt; & Lt; Action Android: name = "android.intent.action.VIEW" /> & Lt; Category android: name = "android.intent.category.DEFAULT" /> & Lt; Data Android: scheme = "file" /> & Lt; Data Android: Host = "*" /> & Lt; Data Android: pathPattern = ". * * \\ .mpb" /> & Lt; Data Android: mimeType = "* / *" /> & Lt; / Intent-Filter & gt; & Lt; / Receiver & gt; & Lt; / Application & gt; & Lt; / Reveal & gt;  

When I click on a file file in the example.mpb (actually just a plain JSON text file), then send me your BroadcastReceiver's It is not expected to call . What am I missing?


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -