Android how to create Custom URL scheme with the given format myapp://http://

后端 未结 3 698
忘了有多久
忘了有多久 2021-01-04 00:06

I have researched through most of the custom URL scheme Q&A and I have not found my possible answer.

I want my app to be launched by clicking a certain URL in t

3条回答
  •  無奈伤痛
    2021-01-04 00:57

    you need use a hyperlink to start the app . for example ,you set scheme="yourpackagename" ,you need to set a hyperlink like this: yourpackagename://host ,and you should vist the hyperlink on you moble browser .If you do not have host lable,just remove it.

    
    
        
        
        
        
    
    
    

    If your activity has more than one scheme, you should use 2 or more to specify it

提交回复
热议问题