Android Respond To URL in Intent

后端 未结 2 1543
Happy的楠姐
Happy的楠姐 2020-11-22 05:07

I want my intent to be launched when the user goes to a certain url: for example, the android market does this with http://market.android.com/ urls. so does youtube. I want

2条回答
  •  再見小時候
    2020-11-22 05:52

    You might need to add different permutations to your intent filter to get it to work in different cases (http/ https/ ect).

    For example, I had to do the following for an app which would open when the user opened a link to google drive forms, www.docs.google.com/forms

    Note that path prefix is optional.

            
                
                
                
                
                
    
                
    
                
            
    

提交回复
热议问题