Open the native browser from an android app

后端 未结 6 1853
孤街浪徒
孤街浪徒 2020-12-30 11:26

I have an android phone with multiple browsers installed and I might or might not set a browser to default.

So, my question is..

  1. From my App, How do I
6条回答
  •  说谎
    说谎 (楼主)
    2020-12-30 12:06

    You have to make the following for calling the native browser

      intent.setComponent(new    
      componentName("com.android.browser","com.android.browser.BrowserActivity"));
    

提交回复
热议问题