android - Why is my Intent not being matched? -


I have to follow the article about intestinal and intent filters in the hope of clearly going to the underlying intents of my application Have tried (seems to make things a bit simpler) However, my intents never match, no matter how much I try. Important information below:

  = Intent to new intent (Intent.ACTION_VIEW, Provider.constantsUri); //in.addCategory(Intent.CATEGORY_DEFAULT); Is it necessary? (In) startActivity;   

And in my clarity:

  & amp; Activity Activity: Name = "Equation" & gt; & Lt; Intent-Filter & gt; & Lt; Action Android: name = "android.intent.action.VIEW" & gt; & Lt; / Action> & Lt; Data Android: Schema = "Content" Android: Host = "com.espian.formulae.pro" Android: Path = "Constant" & gt; & Lt; / Data & gt; & Lt; Category android: name = "android.intent.category.DEFAULT" & gt; & Lt; / Category & gt; & Lt; / Intent-Filter & gt; & Lt; / Activity & gt;   

and the definition of constants Yuri:

  public static URI constants Yuri = Uri. From "(content: //com.espian.formulae.pro/ Const "); I have also tried to make  Uri  with the  Uri.Builder , but no luck is there. Am I missing something?   

I have apps like me:

  & lt; Activity Android: name = "TwitterAuthActivity" & gt; & Lt; Intent-Filter & gt; & Lt; Action Android: name = "android.intent.action.VIEW" /> & Lt; Category android: name = "android.intent.category.DEFAULT" /> & Lt; Category android: name = "android.intent.category.BROWSABLE" /> & Lt; Data Android: Scheme = "Moodling" Android: host = "twitterauth" /> & Lt; / Intent-Filter & gt; & Lt; / Activity & gt;   

And if I put it in a new test app:

  intent in = new intent (Intent.ACTION_VIEW, Uri.parse ("Moodling: / / Twitterauth ")); (In) startActivity;   

This activity launches is incorrect in some way in your filter definition, but I'm not sure what happened, try copying my version and make sure it For work, then try to reduce it as you change parts.

Comments