How to launch app on click of url in android

后端 未结 1 1144
我寻月下人不归
我寻月下人不归 2020-12-03 03:41

Launch app when click on url if app installed on device. if app not installed on device, open playstore.

        
                    


        
1条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-03 04:41

    You have to deep link your app, add following lines in activity (Manifiest.xml) which you want to launch

        
                
                
                
                
            
    

    in browser when ever you click appname://screen your app activity will be launched,

    replace appname and screen as per your requirement

    Note if you type this url in browser it will search in google ,for this to work you have to write link in html page

    Some text
    

    If not working the add android:exported="true" in activity

     
    

    0 讨论(0)
提交回复
热议问题