开发者

Open FTP URL in browser Android [closed]

Closed. This question is off-topic. It is not currently accepting answers. 开发者_JAVA技巧

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 11 years ago.

Improve this question

I want to launch an FTP URL in browser. The URL is similar to this: ftp://192.168.43.1:2121

Intent httpIntent = new Intent(Intent.ACTION_VIEW);
String url = "ftp://192.168.43.1:2121";
httpIntent.setData(Uri.parse(url));
startActivity(httpIntent);

This code throws NoActivityFound exception. It seems like browsers are unable to recognise it as a URL. But if we explicitly type ftp://192.168.43.1:2121 it opens perfectly in browsers.

I found some workaround to explicitly open the url in Chrome but I want to list all browsers of system in choice.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜