Android: Activity not found exception on some devices, when trying to open local HTML - file in browser

前端 未结 5 1016
忘了有多久
忘了有多久 2020-12-29 12:51

I\'m encountering a strange error when I try to open a local HTML - file in the android browser. The error that occurs is an activity not found exception:

an         


        
5条回答
  •  既然无缘
    2020-12-29 13:22

    New devices can come with Chrome instead of native browser, so you should use for this

    browserIntent.setComponent(new ComponentName("com.android.chrome", "com.google.android.apps.chrome.IntentDispatcher"));

提交回复
热议问题