Make a link in the Android browser start up my app?

前端 未结 9 1149
小鲜肉
小鲜肉 2020-11-21 22:06

Is it possible to make a link such as:

click me!

cause my Anton app to start

9条回答
  •  自闭症患者
    2020-11-21 22:48

    This method doesn't call the disambiguation dialog asking you to open either your app or a browser.

    If you register the following in your Manifest

    
      
        
          
            
            
            
            
          
        
        ..
    

    and click this url from an email on your phone for example

     
      Click me 
    
    

    then android will try to find an app with the package com.myApp that responds to your gallery intent and has a myApp scheme. In case it can't, it will take you to the store, looking for com.myApp, which should be your app.

提交回复
热议问题