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.
我正在尝试使用 IP 地址启动浏览器。
String url = "//192.168.178.1" Intent i = new Intent(Intent.ACTION_VIEW); i.addCategory(Intent.CATEGORY_BROWSABLE); i.setData(Uri.parse(url)); startActivity(i);
但不是浏览 ip,应用程序崩溃了,我只在浏览器上看到一个“新标签”窗口。
您错过了您的网址的架构。改进去String url = "http://192.168.178.1"
String url = "http://192.168.178.1"