Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在默认的 android 浏览器中使用 javascript 访问 android 本机代码?
问候, 多姆
不,对不起。
您可以创建自己的 Android 应用程序,通过WebView小部件向 WebKit 公开 Java 对象。此外,您可以从“在默认 Android 浏览器中”显示的 Web 内容链接到 Android 应用程序(无论对用户来说可能是什么)。而且,您可以安排让您编写的应用程序响应 URL,否则这些 URL 可能会转到浏览器。但仅此而已。
WebView