【发布时间】:2020-04-13 20:21:45
【问题描述】:
我使用以下代码,但应用程序只是崩溃,因为 URI.Parse 不知道如何处理 ftp:/
Intent intent=new Intent(Intent.ACTION_VIEW, Uri.parse(LinkUrl.get("ftp:/192.168.0.103")));
startActivity(intent);
LOG Cat 如下(引发异常的部分):
2019-12-22 03:04:25.877 8018-8018/com.example.webview E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.webview, PID: 8018
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.webview/com.example.webview.MainActivity}: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=ftp:///... }
【问题讨论】:
标签: android android-intent ftp ftp-client ftpwebrequest