Support for other protocols in Android webview

前端 未结 7 2160
囚心锁ツ
囚心锁ツ 2020-11-29 04:08

I\'ve created a web view app, the page that is displayed features market:// links but upon clicking them I get the 404 screen along with the error that the protocol is not s

7条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-29 04:45

    Simplest solution

     Intent newApp = new Intent(Intent.ACTION_VIEW,  Uri.parse(URL));
    startActivity(newApp);
    

提交回复
热议问题