Launching my app using the intent URI

后端 未结 2 1956
清酒与你
清酒与你 2020-12-30 12:41

I know this has been asked a lot of times in StackOverflow already, but I haven\'t quite found a solution yet. My app sends an email with a link in it that when clicked shou

相关标签:
2条回答
  • 2020-12-30 12:43

    You could try quotes around your URLs in your <a> elements, since that is how HTML is supposed to be written.

    You might also try confirming, via parseUri(), PackageManager, and queryIntentActivities(), if your generated URL resolves to something -- if it does not, then there is a problem with the URL.

    Here is a sample project showing the use of URI_INTENT_SCHEME, in case it gives you any ideas.

    0 讨论(0)
  • 2020-12-30 12:52

    Use zero flag to create URI with your custom scheme. Intent.URI_INTENT_SCHEME flag forces "intent:" scheme (and overall intent URI crazy syntax) to be used.

    String customUri = customIntent.toUri(0);
    
    0 讨论(0)
提交回复
热议问题